2
0
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:
John Preston
2020-02-26 20:12:51 +04:00
parent 844e9b60dd
commit 3b327d9397

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