diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-10 12:24:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 12:24:41 +0200 |
commit | 2090f958c8d1940238fe08f98eee2145edb12906 (patch) | |
tree | de12a38e787321887c42961071173a2802ebee55 /launcher/minecraft/mod/ResourceFolderModel.cpp | |
parent | 7004388105c7d57db156a763438cd5bf3c09f55a (diff) | |
parent | 8731f4ba275d6a0be44eb7cb1f0ad09a85cf4d16 (diff) | |
download | PrismLauncher-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.cpp | 2 |
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); |