2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Moved AppClass to messenger.cpp:Messenger.

This commit is contained in:
John Preston
2017-02-23 13:59:19 +03:00
parent 63c61637f8
commit c3b3819d9f
40 changed files with 940 additions and 962 deletions

View File

@@ -181,10 +181,6 @@ void settingsParseArgs(int argc, char *argv[]) {
gExeDir = psCurrentExeDirectory(argc, argv);
gExeName = psCurrentExeName(argc, argv);
if (argc == 2 && fromUtf8Safe(argv[1]).endsWith(qstr(".telegramcrash")) && QFile(fromUtf8Safe(argv[1])).exists()) {
gLaunchMode = LaunchModeShowCrash;
gStartUrl = fromUtf8Safe(argv[1]);
}
for (int32 i = 0; i < argc; ++i) {
if (qstr("-testmode") == argv[i]) {
gTestMode = true;
@@ -200,9 +196,6 @@ void settingsParseArgs(int argc, char *argv[]) {
gLaunchMode = LaunchModeFixPrevious;
} else if (qstr("-cleanup") == argv[i]) {
gLaunchMode = LaunchModeCleanup;
} else if (qstr("-crash") == argv[i] && i + 1 < argc) {
gLaunchMode = LaunchModeShowCrash;
gStartUrl = fromUtf8Safe(argv[++i]);
} else if (qstr("-noupdate") == argv[i]) {
gNoStartUpdate = true;
} else if (qstr("-tosettings") == argv[i]) {