зеркало из https://github.com/nextcloud/desktop.git
Fix wrong macro clause
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Родитель
ed9c06583a
Коммит
dc9744448c
|
@ -132,7 +132,7 @@ int Systray::calcTrayWindowX()
|
|||
int Systray::calcTrayWindowY()
|
||||
{
|
||||
#ifdef Q_OS_OSX
|
||||
// macOS menu bar is always 22 (effective) pixels and at the top
|
||||
// macOS menu bar is always 22 (effective) pixels
|
||||
// don't use availableGeometry() here, because this also excludes the dock
|
||||
return 22+6;
|
||||
#else
|
||||
|
@ -162,7 +162,8 @@ int Systray::calcTrayWindowY()
|
|||
}
|
||||
} else {
|
||||
// tray icon is on the top
|
||||
#endif
|
||||
return (trayScreen->geometry().height() - trayScreen->availableGeometry().height()) + 6;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} // namespace OCC
|
||||
|
|
Загрузка…
Ссылка в новой задаче