mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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:
commit
41e3b81abf
2 changed files with 3 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -57,10 +57,7 @@ Window {
|
|||
onShowWindow: {
|
||||
accountMenu.close();
|
||||
appsMenu.close();
|
||||
|
||||
if (!Systray.useNormalWindow) {
|
||||
Systray.positionWindow(trayWindow);
|
||||
}
|
||||
Systray.positionWindow(trayWindow);
|
||||
|
||||
trayWindow.show();
|
||||
trayWindow.raise();
|
||||
|
|
Loading…
Reference in a new issue