diff options
| author | 2020-06-29 23:11:57 -0400 | |
|---|---|---|
| committer | 2020-06-29 23:11:57 -0400 | |
| commit | fa8e35c49f2d0a74243fcba9416da70d6e08db07 (patch) | |
| tree | 810e91895676ada42ea1a1242b05232f54366599 | |
| parent | Merge pull request #4140 from ReinUsesLisp/validation-layers (diff) | |
| parent | Fix issues caused when changing the fullscreen hotkey (diff) | |
| download | yuzu-fa8e35c49f2d0a74243fcba9416da70d6e08db07.tar.gz yuzu-fa8e35c49f2d0a74243fcba9416da70d6e08db07.tar.xz yuzu-fa8e35c49f2d0a74243fcba9416da70d6e08db07.zip | |
Merge pull request #4182 from Kewlan/fullscreen-hotkey-fix
hotkeys: Fix issues caused when changing the fullscreen hotkey
| -rw-r--r-- | src/yuzu/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 82625e67f..880a6a06e 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -689,6 +689,11 @@ void GMainWindow::InitializeHotkeys() { | |||
| 689 | ui.action_Capture_Screenshot->setShortcutContext( | 689 | ui.action_Capture_Screenshot->setShortcutContext( |
| 690 | hotkey_registry.GetShortcutContext(main_window, capture_screenshot)); | 690 | hotkey_registry.GetShortcutContext(main_window, capture_screenshot)); |
| 691 | 691 | ||
| 692 | ui.action_Fullscreen->setShortcut( | ||
| 693 | hotkey_registry.GetHotkey(main_window, fullscreen, this)->key()); | ||
| 694 | ui.action_Fullscreen->setShortcutContext( | ||
| 695 | hotkey_registry.GetShortcutContext(main_window, fullscreen)); | ||
| 696 | |||
| 692 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Load File"), this), | 697 | connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Load File"), this), |
| 693 | &QShortcut::activated, this, &GMainWindow::OnMenuLoadFile); | 698 | &QShortcut::activated, this, &GMainWindow::OnMenuLoadFile); |
| 694 | connect( | 699 | connect( |
| @@ -876,10 +881,6 @@ void GMainWindow::ConnectMenuEvents() { | |||
| 876 | connect(ui.action_Reset_Window_Size, &QAction::triggered, this, &GMainWindow::ResetWindowSize); | 881 | connect(ui.action_Reset_Window_Size, &QAction::triggered, this, &GMainWindow::ResetWindowSize); |
| 877 | 882 | ||
| 878 | // Fullscreen | 883 | // Fullscreen |
| 879 | ui.action_Fullscreen->setShortcut( | ||
| 880 | hotkey_registry | ||
| 881 | .GetHotkey(QStringLiteral("Main Window"), QStringLiteral("Fullscreen"), this) | ||
| 882 | ->key()); | ||
| 883 | connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); | 884 | connect(ui.action_Fullscreen, &QAction::triggered, this, &GMainWindow::ToggleFullscreen); |
| 884 | 885 | ||
| 885 | // Movie | 886 | // Movie |