Fix launching with data in ~/.TelegramDesktop

Regression was introduced in 60612635ef.

Fixes #7289.
This commit is contained in:
John Preston 2020-02-26 20:12:51 +04:00
parent 844e9b60dd
commit 3b327d9397
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}