summaryrefslogtreecommitdiffstats
path: root/application/InstanceWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-07-24 00:24:02 +0200
committerPetr Mrázek <peterix@gmail.com>2019-07-24 00:24:02 +0200
commitc3e61536a3ba7b0dca1171df36e9aeb09b6e2a0d (patch)
tree6b6acc80e2c5a29108d652b21ca76fc6ebee91d4 /application/InstanceWindow.cpp
parenta0e45c5d1d55413e6b12334991ec41c6d9509bca (diff)
downloadMultiMC-c3e61536a3ba7b0dca1171df36e9aeb09b6e2a0d.tar
MultiMC-c3e61536a3ba7b0dca1171df36e9aeb09b6e2a0d.tar.gz
MultiMC-c3e61536a3ba7b0dca1171df36e9aeb09b6e2a0d.tar.lz
MultiMC-c3e61536a3ba7b0dca1171df36e9aeb09b6e2a0d.tar.xz
MultiMC-c3e61536a3ba7b0dca1171df36e9aeb09b6e2a0d.zip
NOISSUE automatically open the log page when starting the instance
Diffstat (limited to 'application/InstanceWindow.cpp')
-rw-r--r--application/InstanceWindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/InstanceWindow.cpp b/application/InstanceWindow.cpp
index cf445f12..75b17f36 100644
--- a/application/InstanceWindow.cpp
+++ b/application/InstanceWindow.cpp
@@ -149,10 +149,13 @@ void InstanceWindow::on_InstanceLaunchTask_changed(shared_qobject_ptr<LaunchTask
m_proc = proc;
}
-void InstanceWindow::on_RunningState_changed(bool)
+void InstanceWindow::on_RunningState_changed(bool running)
{
updateLaunchButtons();
m_container->refreshContainer();
+ if(running) {
+ selectPage("log");
+ }
}
void InstanceWindow::on_closeButton_clicked()