aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/MainWindow.h
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-04-16 03:32:08 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-04-16 03:32:08 -0400
commit6a97ac603abf5554e920caf74fff4b643cde85fe (patch)
tree2c3ada8205a7abc7f98e385beb7420694b356e33 /launcher/ui/MainWindow.h
parente59d3a339fcba0d17fd70df5690d358d1da315ac (diff)
downloadPrismLauncher-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.h2
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: