mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
fixed custom context menu for os x, fixed file drag-n-drop in os x 10.10
This commit is contained in:
@@ -787,7 +787,7 @@ void Window::setupTrayIcon() {
|
||||
}
|
||||
|
||||
void Window::updateTrayMenu(bool force) {
|
||||
if (!trayIconMenu || cPlatform() == dbipWindows && !force) return;
|
||||
if (!trayIconMenu || (cPlatform() == dbipWindows && !force)) return;
|
||||
|
||||
bool active = psIsActive();
|
||||
QAction *first = trayIconMenu->actions().at(0);
|
||||
@@ -869,7 +869,7 @@ void Window::showFromTray(QSystemTrayIcon::ActivationReason reason) {
|
||||
}
|
||||
|
||||
void Window::toggleTray(QSystemTrayIcon::ActivationReason reason) {
|
||||
if (trayIconMenu && cPlatform() == dbipMac) return;
|
||||
if (cPlatform() == dbipMac && psIsActive()) return;
|
||||
if (reason == QSystemTrayIcon::Context) {
|
||||
updateTrayMenu(true);
|
||||
QTimer::singleShot(1, this, SLOT(psShowTrayMenu()));
|
||||
|
Reference in New Issue
Block a user