mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 19:06:58 +03:00
Only enable move buttons for version patches that can move. HACK HACK
This commit is contained in:
parent
6b3d1101cb
commit
694067c603
1 changed files with 6 additions and 1 deletions
|
|
@ -358,9 +358,14 @@ void VersionPage::versionCurrent(const QModelIndex ¤t, const QModelIndex &
|
|||
if (!current.isValid())
|
||||
{
|
||||
ui->removeLibraryBtn->setDisabled(true);
|
||||
ui->moveLibraryDownBtn->setDisabled(true);
|
||||
ui->moveLibraryUpBtn->setDisabled(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->removeLibraryBtn->setEnabled(m_version->canRemove(current.row()));
|
||||
bool enabled = m_version->canRemove(current.row());
|
||||
ui->removeLibraryBtn->setEnabled(enabled);
|
||||
ui->moveLibraryDownBtn->setEnabled(enabled);
|
||||
ui->moveLibraryUpBtn->setEnabled(enabled);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue