diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-08-03 05:30:46 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-08-03 05:30:46 +0200 |
commit | 7d13e3119801862b9fdf64b11a45c41a64b4fc46 (patch) | |
tree | bf57acec88e4c4f09605603291d5483da2a13ab6 /api/logic/minecraft/SimpleModList.cpp | |
parent | 40c9af1a8b2f42f4c90c8d358eac43370c04a227 (diff) | |
download | MultiMC-7d13e3119801862b9fdf64b11a45c41a64b4fc46.tar MultiMC-7d13e3119801862b9fdf64b11a45c41a64b4fc46.tar.gz MultiMC-7d13e3119801862b9fdf64b11a45c41a64b4fc46.tar.lz MultiMC-7d13e3119801862b9fdf64b11a45c41a64b4fc46.tar.xz MultiMC-7d13e3119801862b9fdf64b11a45c41a64b4fc46.zip |
NOISSUE refactor Mod a bunch, get rid of dead code
Diffstat (limited to 'api/logic/minecraft/SimpleModList.cpp')
-rw-r--r-- | api/logic/minecraft/SimpleModList.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/api/logic/minecraft/SimpleModList.cpp b/api/logic/minecraft/SimpleModList.cpp index 5edd6856..b90b55c2 100644 --- a/api/logic/minecraft/SimpleModList.cpp +++ b/api/logic/minecraft/SimpleModList.cpp @@ -249,8 +249,17 @@ QVariant SimpleModList::data(const QModelIndex &index, int role) const { case NameColumn: return mods[row].name(); - case VersionColumn: + case VersionColumn: { + switch(mods[row].type()) { + case Mod::MOD_FOLDER: + return tr("Folder"); + case Mod::MOD_SINGLEFILE: + return tr("File"); + default: + break; + } return mods[row].version(); + } case DateColumn: return mods[row].dateTimeChanged(); |