mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 03:00:43 +00:00
Added -language command line switch to reset language
This commit is contained in:
parent
a9ffeac07f
commit
87b3ca2355
@ -157,16 +157,18 @@ int main(int argc, char *argv[])
|
||||
QApplication a(argc, argv);
|
||||
QStringList args = QCoreApplication::arguments();
|
||||
|
||||
QSettings settings(getDeveloperName(), getAppName());
|
||||
|
||||
for (int i = 1; i < args.size(); i++) {
|
||||
if (args[i] == "-l") { force_login_screen = true; }
|
||||
else if (args[i] == "-d") { force_data_dir = true; }
|
||||
else if (args[i] == "-p") {
|
||||
else if (args[i] == "-language") {
|
||||
settings.setValue("Settings/Language","");
|
||||
} else if (args[i] == "-p") {
|
||||
sDelay(1);
|
||||
}
|
||||
}
|
||||
|
||||
QSettings settings(getDeveloperName(), getAppName());
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Language Selection
|
||||
////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user