From 1bd371dabdd3e5d876ff5c16221c5be929562e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 23 May 2022 15:32:32 +0200 Subject: [PATCH] app: Always activate before opening files Make sure app window was created and bring it on top when started with file(s) as args --- src/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 0e6d47da..94b26685 100644 --- a/src/app.js +++ b/src/app.js @@ -29,7 +29,8 @@ class ClapperApp extends Gtk.Application { super.vfunc_open(files, hint); - this._openFilesAsync(files).then(() => this.activate()).catch(debug); + this.activate(); + this._openFilesAsync(files).catch(debug); } vfunc_activate()