mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 10:19:08 +01:00
Fix issues caused when changing the fullscreen hotkey
This commit is contained in:
parent
d11baf8bf8
commit
323eb86c9f
1 changed files with 5 additions and 4 deletions
|
@ -666,6 +666,11 @@ void GMainWindow::InitializeHotkeys() {
|
||||||
ui.action_Capture_Screenshot->setShortcutContext(
|
ui.action_Capture_Screenshot->setShortcutContext(
|
||||||
hotkey_registry.GetShortcutContext(main_window, capture_screenshot));
|
hotkey_registry.GetShortcutContext(main_window, capture_screenshot));
|
||||||
|
|
||||||
|
ui.action_Fullscreen->setShortcut(
|
||||||
|
hotkey_registry.GetHotkey(main_window, fullscreen, this)->key());
|
||||||
|
ui.action_Fullscreen->setShortcutContext(
|
||||||
|
hotkey_registry.GetShortcutContext(main_window, fullscreen));
|
||||||
|
|
||||||
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Load File"), this),
|
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Load File"), this),
|
||||||
&QShortcut::activated, this, &GMainWindow::OnMenuLoadFile);
|
&QShortcut::activated, this, &GMainWindow::OnMenuLoadFile);
|
||||||
connect(
|
connect(
|
||||||
|
@ -849,10 +854,6 @@ void GMainWindow::ConnectMenuEvents() {
|
||||||
connect(ui.action_Reset_Window_Size, &QAction::triggered, this, &GMainWindow::ResetWindowSize);
|
connect(ui.action_Reset_Window_Size, &QAction::triggered, this, &GMainWindow::ResetWindowSize);
|
||||||
|
|
||||||
// Fullscreen
|
// Fullscreen
|
||||||
ui.action_Fullscreen->setShortcut(
|
|
||||||
hotkey_registry
|
|
||||||
.GetHotkey(QStringLiteral("Main Window"), QStringLiteral("Fullscreen"), this)
|
|
||||||
->key());
|
|
||||||
connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen);
|
connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen);
|
||||||
|
|
||||||
// Movie
|
// Movie
|
||||||
|
|
Loading…
Reference in a new issue