Skip to content

Commit

Permalink
handle maximized correctly
Browse files Browse the repository at this point in the history
when maximized window is embedded and then txs closed
  • Loading branch information
octaeder committed Feb 9, 2024
1 parent b4a147a commit ddaf9eb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/pdfviewer/PDFDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4298,13 +4298,15 @@ PDFDocument *PDFDocument::findDocument(const QString &fileName)

void PDFDocument::saveGeometryToConfig()
{
if (!isMaximized() && !isFullScreen()) {
globalConfig->windowLeft = x();
globalConfig->windowTop = y();
globalConfig->windowWidth = width();
globalConfig->windowHeight = height();
if (!embeddedMode) {
if (!isMaximized() && !isFullScreen()) {
globalConfig->windowLeft = x();
globalConfig->windowTop = y();
globalConfig->windowWidth = width();
globalConfig->windowHeight = height();
}
globalConfig->windowMaximized = isMaximized();
}
globalConfig->windowMaximized = isMaximized();
globalConfig->windowState = saveState();
globalConfig->toolbarVisible = toolBar->isVisible();
globalConfig->annotationPanelVisible = annotationPanel->isVisible();
Expand Down

0 comments on commit ddaf9eb

Please sign in to comment.