aboutsummaryrefslogtreecommitdiff
path: root/application
diff options
context:
space:
mode:
authorkb1000 <kaeptmblaubaer1000@gmail.com>2021-03-23 21:54:48 +0100
committerkb1000 <kaeptmblaubaer1000@gmail.com>2021-03-23 21:54:48 +0100
commit4f3328e71cd6478513509d476de86378b8441586 (patch)
tree1f992449a40cc781738cf8ab07beec0cb1c1d106 /application
parentcbc973a5afb1a2ba321ea851f89e7189ce322460 (diff)
downloadPrismLauncher-4f3328e71cd6478513509d476de86378b8441586.tar.gz
PrismLauncher-4f3328e71cd6478513509d476de86378b8441586.tar.bz2
PrismLauncher-4f3328e71cd6478513509d476de86378b8441586.zip
NOISSUE disable datapacks button in the world screen if no world is selected
Diffstat (limited to 'application')
-rw-r--r--application/pages/instance/WorldListPage.cpp1
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 &current, 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);
}