mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Install app icon in a spec-compilant way
This commit is contained in:
parent
594bb8a76b
commit
a6a8e32be7
1 changed files with 3 additions and 2 deletions
|
@ -484,9 +484,10 @@ void InstallLauncher() {
|
|||
const auto icons = QStandardPaths::writableLocation(
|
||||
QStandardPaths::GenericDataLocation) + u"/icons/"_q;
|
||||
|
||||
if (!QDir(icons).exists()) QDir().mkpath(icons);
|
||||
const auto appIcons = icons + u"/hicolor/256x256/apps/"_q;
|
||||
if (!QDir(appIcons).exists()) QDir().mkpath(appIcons);
|
||||
|
||||
const auto icon = icons + ApplicationIconName() + u".png"_q;
|
||||
const auto icon = appIcons + ApplicationIconName() + u".png"_q;
|
||||
QFile::remove(icon);
|
||||
QFile::remove(icons + u"telegram.png"_q);
|
||||
if (QFile::copy(u":/gui/art/logo_256.png"_q, icon)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue