Skip to content

Commit 44ca2cd

Browse files
mmstickjackpot51
authored andcommitted
perf: Start launcher service after it is confirmed that the dialog was opened
1 parent 1c77b3d commit 44ca2cd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/launcher.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,6 @@ export class Launcher extends search.Search {
310310
const mon_area = ext.monitor_area(active_monitor)
311311
const mon_width = mon_area ? mon_area.width : mon_work_area.width
312312

313-
super.cleanup()
314-
315-
this.start_services()
316-
this.search('')
317-
318313
super._open(global.get_current_time(), false)
319314

320315
if (!this.dialog.visible) {
@@ -324,6 +319,10 @@ export class Launcher extends search.Search {
324319
return
325320
}
326321

322+
super.cleanup()
323+
this.start_services()
324+
this.search('')
325+
327326
this.dialog.dialogLayout.x = (mon_width / 2) - (this.dialog.dialogLayout.width / 2)
328327

329328
let height = mon_work_area.height >= 900 ? mon_work_area.height / 2 : mon_work_area.height / 3.5

0 commit comments

Comments
 (0)