mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
Fix logging initial working directory when TelegramForcePortable exists
This commit is contained in:
@@ -291,7 +291,8 @@ Launcher::Launcher(int argc, char *argv[])
|
||||
: _argc(argc)
|
||||
, _argv(argv)
|
||||
, _arguments(readArguments(_argc, _argv))
|
||||
, _baseIntegration(_argc, _argv) {
|
||||
, _baseIntegration(_argc, _argv)
|
||||
, _initialWorkingDir(QDir::currentPath() + '/') {
|
||||
crl::toggle_fp_exceptions(true);
|
||||
|
||||
base::Integration::Set(&_baseIntegration);
|
||||
@@ -446,6 +447,10 @@ const QStringList &Launcher::arguments() const {
|
||||
return _arguments;
|
||||
}
|
||||
|
||||
QString Launcher::initialWorkingDir() const {
|
||||
return _initialWorkingDir;
|
||||
}
|
||||
|
||||
bool Launcher::customWorkingDir() const {
|
||||
return !_customWorkingDir.isEmpty();
|
||||
}
|
||||
|
Reference in New Issue
Block a user