mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
dont cache default background image, cmd+m minimizes window in os x
This commit is contained in:
@@ -2178,6 +2178,15 @@ namespace Local {
|
||||
void writeBackground(int32 id, const QImage &img) {
|
||||
if (!_working()) return;
|
||||
|
||||
if (img.isNull()) {
|
||||
if (_backgroundKey) {
|
||||
clearKey(_backgroundKey);
|
||||
_backgroundKey = 0;
|
||||
_mapChanged = true;
|
||||
}
|
||||
_writeMap();
|
||||
return;
|
||||
}
|
||||
QByteArray png;
|
||||
{
|
||||
QBuffer buf(&png);
|
||||
|
Reference in New Issue
Block a user