Correctly set _desktopFile to Telegram.desktop if Telegram.desktop was found

This commit is contained in:
John Zimmermann 2019-04-22 01:20:50 +02:00 committed by John Preston
parent e200a7d502
commit 4d42e7e5b9
1 changed files with 2 additions and 2 deletions

View File

@ -553,8 +553,8 @@ void MainWindow::psFirstShow() {
LOG(("Found Unity Launcher entry telegramdesktop.desktop!"));
useUnityCount=true;
} else if(!QStandardPaths::locate(QStandardPaths::ApplicationsLocation, "Telegram.desktop").isEmpty()) {
_desktopFile = "telegramdesktop.desktop";
LOG(("Found Unity Launcher entry telegramdesktop.desktop!"));
_desktopFile = "Telegram.desktop";
LOG(("Found Unity Launcher entry Telegram.desktop!"));
useUnityCount=true;
} else {
LOG(("Could not get Unity Launcher entry!"));