mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
custom context menus (including tray menu for windows) done
This commit is contained in:
@@ -96,6 +96,9 @@ void PsMainWindow::psIdleTimeout() {
|
||||
}
|
||||
}
|
||||
|
||||
void PsMainWindow::psShowTrayMenu() {
|
||||
}
|
||||
|
||||
bool PsMainWindow::psIsOnline(int state) const {
|
||||
if (state < 0) state = this->windowState();
|
||||
if (state & Qt::WindowMinimized) {
|
||||
@@ -137,9 +140,10 @@ void PsMainWindow::psUpdateWorkmode() {
|
||||
} break;
|
||||
|
||||
case dbiwmWindowOnly: {
|
||||
if (trayIconMenu) trayIconMenu->deleteLater();
|
||||
trayIconMenu = 0;
|
||||
if (trayIcon) trayIcon->deleteLater();
|
||||
if (trayIcon) {
|
||||
trayIcon->setContextMenu(0);
|
||||
trayIcon->deleteLater();
|
||||
}
|
||||
trayIcon = 0;
|
||||
} break;
|
||||
}
|
||||
@@ -972,3 +976,6 @@ void psAutoStart(bool start, bool silent) {
|
||||
|
||||
void psSendToMenu(bool send, bool silent) {
|
||||
}
|
||||
|
||||
void psUpdateOverlayed(QWidget *widget) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user