Improve window state handling

It fixes multi-screen setups support and fullscreen in Windows
This commit is contained in:
luisangelsm
2026-04-04 09:38:59 +02:00
parent 4bcdb3c7da
commit e73e0d2a8f
9 changed files with 40 additions and 130 deletions

View File

@ -77,8 +77,6 @@ public:
QByteArray getGeometry() const { return settings->value(Y_WINDOW_GEOMETRY).toByteArray(); }
void setGeometry(const QByteArray &g) { settings->setValue(Y_WINDOW_GEOMETRY, g); }
bool getMaximized() { return settings->value(MAXIMIZED).toBool(); }
void setMaximized(bool b) { settings->setValue(MAXIMIZED, b); }
bool getDoublePage() { return settings->value(DOUBLE_PAGE).toBool(); }
void setDoublePage(bool b) { settings->setValue(DOUBLE_PAGE, b); }
bool getDoubleMangaPage() { return settings->value(DOUBLE_MANGA_PAGE).toBool(); }