app: Always activate before opening files

Make sure app window was created and bring it on top when started with file(s) as args
This commit is contained in:
Rafał Dzięgiel
2022-05-23 15:32:32 +02:00
parent 5f6c0922c0
commit 1bd371dabd

View File

@@ -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()