diff options
author | flow <thiagodonato300@gmail.com> | 2022-04-02 19:21:02 -0300 |
---|---|---|
committer | flow <thiagodonato300@gmail.com> | 2022-04-15 08:49:41 -0300 |
commit | 5cb0e750936f09513b98a8b0fd57746ca18dc8bc (patch) | |
tree | 97f044a7a899cc0ecb2189af95b86132ba71031f /launcher/modplatform/ModAPI.h | |
parent | c730fd6e5f125cde324d110282ed33ea4b9df136 (diff) | |
download | PrismLauncher-5cb0e750936f09513b98a8b0fd57746ca18dc8bc.tar.gz PrismLauncher-5cb0e750936f09513b98a8b0fd57746ca18dc8bc.tar.bz2 PrismLauncher-5cb0e750936f09513b98a8b0fd57746ca18dc8bc.zip |
fix(ui): Refresh mod list when changing filtering options
Diffstat (limited to 'launcher/modplatform/ModAPI.h')
-rw-r--r-- | launcher/modplatform/ModAPI.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/modplatform/ModAPI.h b/launcher/modplatform/ModAPI.h index 6a906aa4..8e6cd45c 100644 --- a/launcher/modplatform/ModAPI.h +++ b/launcher/modplatform/ModAPI.h @@ -61,10 +61,9 @@ class ModAPI { { QString s; for(auto& ver : mcVersions){ - s += ver.toString(); - if(ver != mcVersions.back()) - s += ","; + s += QString("%1,").arg(ver.toString()); } + s.remove(s.length() - 1, 1); //remove last comma return s; } }; |