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 w = event->size().width();
|
||||||
int h = event->size().height();
|
int h = event->size().height();
|
||||||
|
|
||||||
|
if (mainWindow != nullptr && !mainWindow->isFullScreen())
|
||||||
|
{
|
||||||
Config::WindowWidth = w;
|
Config::WindowWidth = w;
|
||||||
Config::WindowHeight = h;
|
Config::WindowHeight = h;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: detect when the window gets maximized!
|
// TODO: detect when the window gets maximized!
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue