Merge pull request #3540 from nextcloud/bugfix/position-tray-dialog-correct

Position main dialog on at tray icon if not a regular window
This commit is contained in:
Felix Weilbach 2021-07-14 20:24:47 +02:00 committed by GitHub
commit 41e3b81abf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -272,9 +272,8 @@ void Systray::pauseResumeSync()
void Systray::positionWindow(QQuickWindow *window) const
{
window->setScreen(currentScreen());
if (useNormalWindow()) {
if (!useNormalWindow()) {
window->setScreen(currentScreen());
const auto position = computeWindowPosition(window->width(), window->height());
window->setPosition(position);
}

View file

@ -57,10 +57,7 @@ Window {
onShowWindow: {
accountMenu.close();
appsMenu.close();
if (!Systray.useNormalWindow) {
Systray.positionWindow(trayWindow);
}
Systray.positionWindow(trayWindow);
trayWindow.show();
trayWindow.raise();