diff src/gui/locale.cc @ 118:39521c47c7a3

*: another huge megacommit, SORRY The torrents page works a lot better now Added the edit option to the anime list right click menu Vectorized currently playing files Available player and extensions are now loaded at runtime from files in (dotpath)/players.json and (dotpath)/extensions.json These paths are not permanent and will likely be moved to (dotpath)/recognition ... ... ...
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 23:40:54 -0500
parents 79714c95a145
children 9613d72b097e
line wrap: on
line diff
--- a/src/gui/locale.cc	Tue Nov 07 16:06:17 2023 -0500
+++ b/src/gui/locale.cc	Tue Nov 07 23:40:54 2023 -0500
@@ -31,11 +31,11 @@
 	SetActiveLocale(QLocale(Strings::ToQString(name)));
 }
 
-QLocale Locale::GetLocale() {
+QLocale Locale::GetLocale() const {
 	return _locale;
 }
 
-std::vector<QLocale> Locale::GetAvailableLocales() {
+std::vector<QLocale> Locale::GetAvailableLocales() const {
 	return _available_translations;
 }
 
@@ -57,7 +57,7 @@
 	}
 }
 
-bool Locale::IsLocaleAvailable(const QLocale& locale) {
+bool Locale::IsLocaleAvailable(const QLocale& locale) const {
 	for (const QLocale& l : _available_translations)
 		if (l == locale)
 			return true;