Fix build with Qt 6 on Windows.

This commit is contained in:
John Preston
2025-10-29 13:49:07 +04:00
parent f8844750f5
commit 6abd4bae58
2 changed files with 2 additions and 3 deletions

View File

@@ -79,8 +79,7 @@ bool DarkTasbarValueValid/* = false*/;
static const auto Content = [&] {
auto f = QFile(u":/gui/icons/tray/monochrome.svg"_q);
f.open(QIODevice::ReadOnly);
return f.readAll();
return f.open(QIODevice::ReadOnly) ? f.readAll() : QByteArray();
}();
static auto Mask = QImage();
static auto Size = 0;