mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix new taskbar "Quit Telegram" icon generation.
This commit is contained in:
parent
06775b5623
commit
6033071e61
1 changed files with 2 additions and 0 deletions
|
@ -410,6 +410,8 @@ void WriteIco(const QString &path, std::vector<QImage> images) {
|
||||||
buffer.append(pngs[i]);
|
buffer.append(pngs[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto dir = QFileInfo(path).dir();
|
||||||
|
dir.mkpath(dir.absolutePath());
|
||||||
auto f = QFile(path);
|
auto f = QFile(path);
|
||||||
if (f.open(QIODevice::WriteOnly)) {
|
if (f.open(QIODevice::WriteOnly)) {
|
||||||
f.write(buffer);
|
f.write(buffer);
|
||||||
|
|
Loading…
Add table
Reference in a new issue