mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-13 18:47:19 +00:00
fixed notifications in os x
This commit is contained in:
parent
1c2289f2ce
commit
0f6429ecb5
@ -108,7 +108,6 @@ void PsMainWindow::psSetupTrayIcon() {
|
||||
psUpdateCounter();
|
||||
|
||||
trayIcon->show();
|
||||
psUpdateDelegate();
|
||||
}
|
||||
|
||||
void PsMainWindow::psUpdateWorkmode() {
|
||||
@ -116,10 +115,11 @@ void PsMainWindow::psUpdateWorkmode() {
|
||||
if (cWorkMode() == dbiwmWindowOnly) {
|
||||
if (trayIcon) {
|
||||
trayIcon->setContextMenu(0);
|
||||
trayIcon->deleteLater();
|
||||
delete trayIcon;
|
||||
}
|
||||
trayIcon = 0;
|
||||
}
|
||||
psUpdateDelegate();
|
||||
setWindowIcon(wndIcon);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user