From 10b9fd2ecaf38a5095768802160802d7748df16e Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Fri, 2 Aug 2024 23:52:56 +0100 Subject: [PATCH] main.cpp: `Toggle Screen Layout` hotkey now uses `connect_shortcut` --- src/lime_qt/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index 1e978cc0a..3c6110887 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -614,7 +614,6 @@ void GMainWindow::InitializeHotkeys() { const QString main_window = QStringLiteral("Main Window"); const QString fullscreen = QStringLiteral("Fullscreen"); - const QString toggle_screen_layout = QStringLiteral("Toggle Screen Layout"); const QString swap_screens = QStringLiteral("Swap Screens"); const QString rotate_screens = QStringLiteral("Rotate Screens Upright"); @@ -663,9 +662,7 @@ void GMainWindow::InitializeHotkeys() { connect(secondary_hotkey, &QShortcut::activated, this, function); }; - connect(hotkey_registry.GetHotkey(main_window, toggle_screen_layout, render_window), - &QShortcut::activated, this, &GMainWindow::ToggleScreenLayout); - + connect_shortcut(QStringLiteral("Toggle Screen Layout"), &GMainWindow::ToggleScreenLayout); connect_shortcut(QStringLiteral("Exit Fullscreen"), [&] { if (emulation_running) { ui->action_Fullscreen->setChecked(false);