aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourceFolderModel.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-12 10:58:27 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-12 10:58:27 +0200
commit6423edaa76c362ea9fd32a4a0ddeda78e06793db (patch)
tree4e052ff604fc42831ef28fe1efa6fc77ed352b03 /launcher/minecraft/mod/ResourceFolderModel.cpp
parent74fe2fb2a6282a9292cc912b865ce0179dbc3412 (diff)
parent44153a28e369943ea16545146fec81f7a62e44dd (diff)
downloadPrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.tar.gz
PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.tar.bz2
PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.zip
Merge remote-tracking branch 'upstream/staging' into curseforge-url-handle
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);