aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourceFolderModel.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-10 12:24:41 +0200
committerGitHub <noreply@github.com>2023-08-10 12:24:41 +0200
commit2090f958c8d1940238fe08f98eee2145edb12906 (patch)
treede12a38e787321887c42961071173a2802ebee55 /launcher/minecraft/mod/ResourceFolderModel.cpp
parent7004388105c7d57db156a763438cd5bf3c09f55a (diff)
parent8731f4ba275d6a0be44eb7cb1f0ad09a85cf4d16 (diff)
downloadPrismLauncher-2090f958c8d1940238fe08f98eee2145edb12906.tar.gz
PrismLauncher-2090f958c8d1940238fe08f98eee2145edb12906.tar.bz2
PrismLauncher-2090f958c8d1940238fe08f98eee2145edb12906.zip
Merge pull request #1324 from leia-uwu/ui-tweaks
Diffstat (limited to 'launcher/minecraft/mod/ResourceFolderModel.cpp')
-rw-r--r--launcher/minecraft/mod/ResourceFolderModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.cpp b/launcher/minecraft/mod/ResourceFolderModel.cpp
index 39a61067..d834c359 100644
--- a/launcher/minecraft/mod/ResourceFolderModel.cpp
+++ b/launcher/minecraft/mod/ResourceFolderModel.cpp
@@ -552,6 +552,8 @@ QMenu* ResourceFolderModel::createHeaderContextMenu(QTreeView* tree)
menu->addSeparator()->setText(tr("Show / Hide Columns"));
for (int col = 0; col < columnCount(); ++col) {
+ // Skip creating actions for columns that should not be hidden
+ if (!m_columnsHideable.at(col)) continue;
auto act = new QAction(menu);
setupHeaderAction(act, col);