Settings: The Maximized property of a window is now correctly restored when it is present in the settings.

[GB.SETTINGS]
* BUG: Settings: The Maximized property of a window is now correctly restored when it is present in the settings.
This commit is contained in:
Benoît Minisini 2023-01-05 13:18:04 +01:00
parent d9a5b8feaf
commit 0e89d805d9
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
[Component]
Key=gb.settings
Version=3.17.90
Version=3.18.0
Authors=Benoît Minisini

View File

@ -1,7 +1,7 @@
# Gambas Project File 3.0
Title=Gambas settings management
Startup=Main
Version=3.17.90
Version=3.18.0
VersionFile=1
Authors="Benoît Minisini"
TabSize=2

View File

@ -389,7 +389,7 @@ Private Sub ReadWindow(hWindow As Window, sKey As String)
If Not hWindow.Modal Then hWindow.Move(X, Y)
Endif
If aPos.Count > 5 And If aPos[5] Then hWindow.Maximized = True
If aPos.Count > 5 Then hWindow.Maximized = aPos[5]
End