Qt: Use ShowOrRaiseWindow() for main window

This commit is contained in:
Stenzek
2025-12-02 20:04:59 +10:00
parent 0172f220ed
commit 42c26cf919
3 changed files with 1 additions and 4 deletions

View File

@@ -209,8 +209,6 @@ void MainWindow::initialize()
switchToGameListView();
QtUtils::RestoreWindowGeometry(this);
#ifdef _WIN32
registerForDeviceNotifications();
#endif

View File

@@ -106,7 +106,6 @@ public:
ALWAYS_INLINE QLabel* getStatusResolutionWidget() const { return m_status_resolution_widget; }
ALWAYS_INLINE QLabel* getStatusFPSWidget() const { return m_status_fps_widget; }
ALWAYS_INLINE QLabel* getStatusVPSWidget() const { return m_status_vps_widget; }
ALWAYS_INLINE AutoUpdaterDialog* getAutoUpdaterDialog() const { return m_auto_updater_dialog; }
ALWAYS_INLINE DebuggerWindow* getDebuggerWindow() const { return m_debugger_window; }
/// Opens the editor for a specific input profile.

View File

@@ -3431,7 +3431,7 @@ int main(int argc, char* argv[])
// Don't bother showing the window in no-gui mode.
if (!s_state.nogui_mode)
g_main_window->show();
QtUtils::ShowOrRaiseWindow(g_main_window, nullptr, true);
// Initialize big picture mode if requested.
if (s_state.start_fullscreen_ui)