mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
Qt: Don't try to center on an invisible window
This commit is contained in:
@@ -98,7 +98,7 @@ void QtUtils::ShowOrRaiseWindow(QWidget* window, const QWidget* parent_window, b
|
||||
// NOTE: Must be before centering the window, otherwise the size may not be correct.
|
||||
window->show();
|
||||
|
||||
if (!restored && parent_window)
|
||||
if (!restored && parent_window && parent_window->isVisible())
|
||||
CenterWindowRelativeToParent(window, parent_window);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user