mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-11 17:04:33 +00:00
Qt: Use ShowOrRaiseWindow() for main window
This commit is contained in:
@@ -209,8 +209,6 @@ void MainWindow::initialize()
|
||||
|
||||
switchToGameListView();
|
||||
|
||||
QtUtils::RestoreWindowGeometry(this);
|
||||
|
||||
#ifdef _WIN32
|
||||
registerForDeviceNotifications();
|
||||
#endif
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user