mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
fix(windows): fix app not showing when monitor setup changed
Fixes #8726
This commit is contained in:
parent
94b911a986
commit
d59cffd623
@ -50,7 +50,14 @@ StatusWindow {
|
||||
visibility = Window.Windowed;
|
||||
}
|
||||
|
||||
if (geometry === undefined) {
|
||||
if (geometry === undefined ||
|
||||
// If the monitor setup of the user changed, it's possible that the old geometry now falls out of the monitor range
|
||||
// In this case, we reset to the basic geometry
|
||||
geometry.x > Screen.desktopAvailableWidth ||
|
||||
geometry.y > Screen.desktopAvailableHeight ||
|
||||
geometry.width > Screen.desktopAvailableWidth ||
|
||||
geometry.height > Screen.desktopAvailableHeight)
|
||||
{
|
||||
let screen = Qt.application.screens[0];
|
||||
|
||||
geometry = Qt.rect(0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user