mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed window frame for minimized and maximized windows on startup
This commit is contained in:
parent
4dc4a37360
commit
810acbcfcc
1 changed files with 9 additions and 9 deletions
|
@ -298,15 +298,6 @@ void WindowManager::initialize(Settings &settings, Paths &paths)
|
|||
|
||||
Window &window = createWindow(type, false);
|
||||
|
||||
if (window_obj.value("state") == "maximized")
|
||||
{
|
||||
window.setWindowState(Qt::WindowMaximized);
|
||||
}
|
||||
else if (window_obj.value("state") == "minimized")
|
||||
{
|
||||
window.setWindowState(Qt::WindowMinimized);
|
||||
}
|
||||
|
||||
if (type == WindowType::Main)
|
||||
{
|
||||
mainWindow_ = &window;
|
||||
|
@ -403,6 +394,15 @@ void WindowManager::initialize(Settings &settings, Paths &paths)
|
|||
}
|
||||
}
|
||||
window.show();
|
||||
|
||||
if (window_obj.value("state") == "minimized")
|
||||
{
|
||||
window.setWindowState(Qt::WindowMinimized);
|
||||
}
|
||||
else if (window_obj.value("state") == "maximized")
|
||||
{
|
||||
window.setWindowState(Qt::WindowMaximized);
|
||||
}
|
||||
}
|
||||
|
||||
if (mainWindow_ == nullptr)
|
||||
|
|
Loading…
Reference in a new issue