Skip to content

Commit

Permalink
language dialog: Close on search stop
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
bragefuglseth committed Jun 22, 2024
1 parent 28c0bb5 commit 83f1797
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widgets/text_language_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ mod imp {
.connect_search_changed(glib::clone!(@weak self as imp => move |_| {
imp.update_search_state();
}));

self.search_entry
.connect_stop_search(glib::clone!(@weak self as imp => move |_| {
imp.obj().close();
}));
}
}
impl WidgetImpl for KpTextLanguageDialog {}
Expand Down

0 comments on commit 83f1797

Please sign in to comment.