Skip to content
Snippets Groups Projects
Unverified Commit f078d3d2 authored by Adam Heinermann's avatar Adam Heinermann Committed by GitHub
Browse files

Refactor menu states and shortcuts in GMainWindow. (#7419)

Refactor menu states and shortcuts in GMainWindow.

- Removed "Start", since it was always disabled unless it was "Continue"
which has now been moved to "Pause".
- Allow hotkeys to be used while in fullscreen.
- Removed the load amiibo hotkey.
parent cd6cf042
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -191,6 +191,7 @@ private:
void ConnectWidgetEvents();
void ConnectMenuEvents();
void UpdateMenuState();
void PreventOSSleep();
void AllowOSSleep();
......@@ -240,7 +241,9 @@ private:
private slots:
void OnStartGame();
void OnRestartGame();
void OnPauseGame();
void OnPauseContinueGame();
void OnStopGame();
void OnMenuReportCompatibility();
void OnOpenModsPage();
......@@ -294,6 +297,9 @@ private slots:
void OnMouseActivity();
private:
/// Updates an action's shortcut and text to reflect an updated hotkey from the hotkey registry.
void LinkActionShortcut(QAction* action, const QString& action_name);
void RemoveBaseContent(u64 program_id, const QString& entry_type);
void RemoveUpdateContent(u64 program_id, const QString& entry_type);
void RemoveAddOnContent(u64 program_id, const QString& entry_type);
......
......@@ -66,7 +66,6 @@
<property name="title">
<string>&amp;Emulation</string>
</property>
<addaction name="action_Start"/>
<addaction name="action_Pause"/>
<addaction name="action_Stop"/>
<addaction name="action_Restart"/>
......@@ -180,14 +179,6 @@
<string>E&amp;xit</string>
</property>
</action>
<action name="action_Start">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Start</string>
</property>
</action>
<action name="action_Pause">
<property name="enabled">
<bool>false</bool>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment