mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-10-04 03:24:44 -04:00
GH-1652 save all instance settings on launch if instance window is already open
This commit is contained in:
1 parent
dd0e996081
commit
8731318fef
6 files changed
+28
-6
No files matched your search
@@ -1463,6 +1463,15 @@ void MainWindow::launch(InstancePtr instance, bool online, BaseProfilerFactory *
|
||||
{
|
||||
if(instance->canLaunch())
|
||||
{
|
||||
// FIXME: duplicate logic between MainWindow and InstanceWindow
|
||||
auto window = m_instanceWindows.find(instance->id());
|
||||
if(window != m_instanceWindows.end())
|
||||
{
|
||||
if(!(*window)->saveAll())
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_launchController.reset(new LaunchController());
|
||||
m_launchController->setInstance(instance);
|
||||
m_launchController->setOnline(online);
|
||||
|
||||
Reference in new issue
Block a user