mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
Added Per-Instance settings
This commit is contained in:
@@ -553,3 +553,19 @@ void MainWindow::on_actionChangeInstLWJGLVersion_triggered()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionInstanceSettings_triggered()
|
||||
{
|
||||
if (view->selectionModel()->selectedIndexes().count() < 1)
|
||||
return;
|
||||
|
||||
Instance *inst = selectedInstance();
|
||||
SettingsObject *s;
|
||||
s = &inst->settings();
|
||||
InstanceSettings *settings = new InstanceSettings (this);
|
||||
settings->loadSettings(s);
|
||||
if (settings->exec()) {
|
||||
settings->applySettings(s);
|
||||
}
|
||||
delete settings;
|
||||
}
|
||||
|
Reference in New Issue
Block a user