Don't save the window size to the config if in full screen (#933)
This commit is contained in:
parent
4a28068295
commit
b75b3f69b7
|
@ -1474,8 +1474,11 @@ void MainWindow::resizeEvent(QResizeEvent* event)
|
|||
int w = event->size().width();
|
||||
int h = event->size().height();
|
||||
|
||||
Config::WindowWidth = w;
|
||||
Config::WindowHeight = h;
|
||||
if (mainWindow != nullptr && !mainWindow->isFullScreen())
|
||||
{
|
||||
Config::WindowWidth = w;
|
||||
Config::WindowHeight = h;
|
||||
}
|
||||
|
||||
// TODO: detect when the window gets maximized!
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue