mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
telegram.me links supported in-app and in Windows
This commit is contained in:
@@ -26,6 +26,7 @@ QString gKeyFile;
|
||||
QString gWorkingDir, gExeDir, gExeName;
|
||||
|
||||
QStringList gSendPaths;
|
||||
QString gStartUrl;
|
||||
|
||||
QString gDialogLastPath, gDialogHelperPath; // optimize QFileDialog
|
||||
|
||||
@@ -128,6 +129,13 @@ void settingsParseArgs(int argc, char *argv[]) {
|
||||
for (++i; i < argc; ++i) {
|
||||
gSendPaths.push_back(QString::fromLocal8Bit(argv[i]));
|
||||
}
|
||||
} else if (string("-workdir") == argv[i] && i + 1 < argc) {
|
||||
QString dir = QString::fromLocal8Bit(argv[++i]);
|
||||
if (QDir().exists(dir)) {
|
||||
gWorkingDir = dir;
|
||||
}
|
||||
} else if (string("--") == argv[i] && i + 1 < argc) {
|
||||
gStartUrl = QString::fromLocal8Bit(argv[++i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user