diff options
author | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-04-16 03:32:08 -0400 |
---|---|---|
committer | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-04-16 03:32:08 -0400 |
commit | 6a97ac603abf5554e920caf74fff4b643cde85fe (patch) | |
tree | 2c3ada8205a7abc7f98e385beb7420694b356e33 /launcher/ui/MainWindow.h | |
parent | e59d3a339fcba0d17fd70df5690d358d1da315ac (diff) | |
download | PrismLauncher-6a97ac603abf5554e920caf74fff4b643cde85fe.tar.gz PrismLauncher-6a97ac603abf5554e920caf74fff4b643cde85fe.tar.bz2 PrismLauncher-6a97ac603abf5554e920caf74fff4b643cde85fe.zip |
Use preexisting actions in the menu bar
The code is now much cleaner.
Because the actions already present are enabled elsewhere even when the menu bar is hidden, keyboard shortcuts added to them automatically work regardless of whether the menu bar is visible. This means that the hacky workaround related to this can be removed.
Diffstat (limited to 'launcher/ui/MainWindow.h')
-rw-r--r-- | launcher/ui/MainWindow.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/launcher/ui/MainWindow.h b/launcher/ui/MainWindow.h index 5424a4a9..2032acba 100644 --- a/launcher/ui/MainWindow.h +++ b/launcher/ui/MainWindow.h @@ -190,8 +190,6 @@ private slots: #ifndef Q_OS_MAC void keyReleaseEvent(QKeyEvent *event) override; - - void keyPressEvent(QKeyEvent *event) override; #endif private: |