Don't save the window size to the config if in full screen (#933)

This commit is contained in:
Nadia Holmquist Pedersen
2021-01-27 00:14:24 +01:00
committed by GitHub
parent 4a28068295
commit b75b3f69b7

View File

@ -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!
}