QT: Keep the render window invisible until emulation starts
This commit is contained in:
@@ -316,7 +316,8 @@ void GMainWindow::ToggleWindowMode() {
|
||||
// Render in the main window...
|
||||
render_window->BackupGeometry();
|
||||
ui.horizontalLayout->addWidget(render_window);
|
||||
render_window->setVisible(true);
|
||||
if (emu_thread != nullptr)
|
||||
render_window->setVisible(true);
|
||||
render_window->setFocusPolicy(Qt::ClickFocus);
|
||||
render_window->setFocus();
|
||||
|
||||
@@ -324,7 +325,8 @@ void GMainWindow::ToggleWindowMode() {
|
||||
// Render in a separate window...
|
||||
ui.horizontalLayout->removeWidget(render_window);
|
||||
render_window->setParent(nullptr);
|
||||
render_window->setVisible(true);
|
||||
if (emu_thread != nullptr)
|
||||
render_window->setVisible(true);
|
||||
render_window->RestoreGeometry();
|
||||
render_window->setFocusPolicy(Qt::NoFocus);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user