2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-11 14:06:25 +00:00

Get rid of GetLauncherFilename

Use QGuiApplication::desktopFileName directly instead
This commit is contained in:
Ilya Fedin
2021-03-12 08:55:31 +04:00
committed by John Preston
parent 4d9c9bbd6f
commit e493ab12dc
5 changed files with 28 additions and 41 deletions

View File

@@ -873,7 +873,8 @@ void MainWindow::updateIconCounters() {
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
if (UseUnityCounter()) {
const auto launcherUrl = Glib::ustring(
"application://" + GetLauncherFilename().toStdString());
"application://"
+ QGuiApplication::desktopFileName().toStdString());
const auto counterSlice = std::min(counter, 9999);
std::map<Glib::ustring, Glib::VariantBase> dbusUnityProperties;