Skip to content

Commit 9839246

Browse files
mmstickjackpot51
authored andcommitted
fix(launcher): Avoid clearing search results on activate before text-changed event
1 parent d59e373 commit 9839246

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/dialog_search.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ export class Search {
6868

6969
let text_changed: null | number = null;
7070

71-
this.text.connect("activate", () => {
72-
if (text_changed !== null) GLib.source_remove(text_changed)
73-
text_changed = null
74-
this.activate_option(this.active_id)
75-
});
71+
this.text.connect("activate", () => this.activate_option(this.active_id));
7672

7773
this.text.connect("text-changed", (entry: any) => {
7874
if (text_changed !== null) GLib.source_remove(text_changed)

0 commit comments

Comments
 (0)