mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Position main dialog on at tray icon if not a regular window
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
parent
6bc6dcd598
commit
036db9d22d
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