diff options
author | Petr Mrázek <peterix@users.noreply.github.com> | 2021-03-26 00:36:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 00:36:30 +0000 |
commit | 8f4062b5e6e551a2d69923255236d9545b97e605 (patch) | |
tree | 1f992449a40cc781738cf8ab07beec0cb1c1d106 | |
parent | cbc973a5afb1a2ba321ea851f89e7189ce322460 (diff) | |
parent | 4f3328e71cd6478513509d476de86378b8441586 (diff) | |
download | PrismLauncher-8f4062b5e6e551a2d69923255236d9545b97e605.tar.gz PrismLauncher-8f4062b5e6e551a2d69923255236d9545b97e605.tar.bz2 PrismLauncher-8f4062b5e6e551a2d69923255236d9545b97e605.zip |
Merge pull request #3677 from kb-1000/datapacks-button-disable
NOISSUE disable datapacks button in the world screen if no world is selected
-rw-r--r-- | application/pages/instance/WorldListPage.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/pages/instance/WorldListPage.cpp b/application/pages/instance/WorldListPage.cpp index d18c5355..119cff3e 100644 --- a/application/pages/instance/WorldListPage.cpp +++ b/application/pages/instance/WorldListPage.cpp @@ -314,6 +314,7 @@ void WorldListPage::worldChanged(const QModelIndex ¤t, const QModelIndex & ui->actionRemove->setEnabled(enable); ui->actionCopy->setEnabled(enable); ui->actionRename->setEnabled(enable); + ui->actionDatapacks->setEnabled(enable); bool hasIcon = !index.data(WorldList::IconFileRole).isNull(); ui->actionReset_Icon->setEnabled(enable && hasIcon); } |