mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
fixed notifications in os x
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user