mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix launching with data in ~/.TelegramDesktop
Regression was introduced in 60612635ef
.
Fixes #7289.
This commit is contained in:
@@ -400,7 +400,9 @@ QString psAppDataPath() {
|
||||
if (!home.isEmpty()) {
|
||||
auto oldPath = home + qsl(".TelegramDesktop/");
|
||||
auto oldSettingsBase = oldPath + qsl("tdata/settings");
|
||||
if (QFile(oldSettingsBase + '0').exists() || QFile(oldSettingsBase + '1').exists()) {
|
||||
if (QFile(oldSettingsBase + '0').exists()
|
||||
|| QFile(oldSettingsBase + '1').exists()
|
||||
|| QFile(oldSettingsBase + 's').exists()) {
|
||||
return oldPath;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user