mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
NOISSUE set groups for instances by not setting groups for instances
So simple. Better in every way.
This commit is contained in:
parent
9965decd81
commit
0c73ddee73
15 changed files with 92 additions and 91 deletions
|
|
@ -1446,7 +1446,8 @@ void MainWindow::on_actionChangeInstGroup_triggered()
|
|||
return;
|
||||
|
||||
bool ok = false;
|
||||
QString name(m_selectedInstance->group());
|
||||
InstanceId instId = m_selectedInstance->id();
|
||||
QString name(MMC->instances()->getInstanceGroup(instId));
|
||||
auto groups = MMC->instances()->getGroups();
|
||||
groups.insert(0, "");
|
||||
groups.sort(Qt::CaseInsensitive);
|
||||
|
|
@ -1455,7 +1456,9 @@ void MainWindow::on_actionChangeInstGroup_triggered()
|
|||
name = QInputDialog::getItem(this, tr("Group name"), tr("Enter a new group name."), groups, foo, true, &ok);
|
||||
name = name.simplified();
|
||||
if (ok)
|
||||
m_selectedInstance->setGroupPost(name);
|
||||
{
|
||||
MMC->instances()->setInstanceGroup(instId, name);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::deleteGroup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue