Added [#1130], [#1220] Remembering last used screen (monitor),

opening dialogs on same screen as the main window,
do not restore window size to larger value that actual screen size

Fixed [#1768], [#1768] Maximizing window on other than main monitor
This commit is contained in:
Jindra Petřík
2023-11-05 21:11:10 +01:00
parent b9a0f15e09
commit 65e612ed6f
10 changed files with 234 additions and 42 deletions
@@ -109,7 +109,7 @@ public class LoadingDialog extends AppDialog {
pack();
Dimension siz = getSize();
setSize(Math.max(300, 150 + getFontMetrics(new JLabel().getFont()).stringWidth(translate("loadingpleasewait"))), siz.height);
View.centerScreen(this);
View.centerScreenMain(this);
}
@Override