Skip to content

Commit

Permalink
Merge pull request #77 from ryonakano/fix-hotkey
Browse files Browse the repository at this point in the history
Fix Ctrl + Q not working when opening the app with files
  • Loading branch information
GijsGoudzwaard authored Aug 26, 2024
2 parents d0ca707 + fc36339 commit 0f062f2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ class Application : Granite.Application {
flags: GLib.ApplicationFlags.HANDLES_OPEN);
}

protected override void activate () {
if (this.app_window == null) {
this.app_window = new MainWindow (this);
this.app_window.show_all ();
}
protected override void startup () {
base.startup ();

var quit_action = new SimpleAction ("quit", null);

Expand All @@ -28,6 +25,13 @@ class Application : Granite.Application {
});
}

protected override void activate () {
if (this.app_window == null) {
this.app_window = new MainWindow (this);
this.app_window.show_all ();
}
}

public override void open (File[] files, string hint) {
if (files [0].query_exists ()) {
foreach (File file in files) {
Expand Down

0 comments on commit 0f062f2

Please sign in to comment.