Skip to content

Commit 42c26cf

Browse files
committed
Qt: Use ShowOrRaiseWindow() for main window
1 parent 0172f22 commit 42c26cf

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/duckstation-qt/mainwindow.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ void MainWindow::initialize()
209209

210210
switchToGameListView();
211211

212-
QtUtils::RestoreWindowGeometry(this);
213-
214212
#ifdef _WIN32
215213
registerForDeviceNotifications();
216214
#endif

src/duckstation-qt/mainwindow.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ class MainWindow final : public QMainWindow
106106
ALWAYS_INLINE QLabel* getStatusResolutionWidget() const { return m_status_resolution_widget; }
107107
ALWAYS_INLINE QLabel* getStatusFPSWidget() const { return m_status_fps_widget; }
108108
ALWAYS_INLINE QLabel* getStatusVPSWidget() const { return m_status_vps_widget; }
109-
ALWAYS_INLINE AutoUpdaterDialog* getAutoUpdaterDialog() const { return m_auto_updater_dialog; }
110109
ALWAYS_INLINE DebuggerWindow* getDebuggerWindow() const { return m_debugger_window; }
111110

112111
/// Opens the editor for a specific input profile.

src/duckstation-qt/qthost.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3431,7 +3431,7 @@ int main(int argc, char* argv[])
34313431

34323432
// Don't bother showing the window in no-gui mode.
34333433
if (!s_state.nogui_mode)
3434-
g_main_window->show();
3434+
QtUtils::ShowOrRaiseWindow(g_main_window, nullptr, true);
34353435

34363436
// Initialize big picture mode if requested.
34373437
if (s_state.start_fullscreen_ui)

0 commit comments

Comments
 (0)