Skip to content

Commit 45098db

Browse files
committed
Make sure last window size gets stored when in pluginmode
1 parent 2ba79eb commit 45098db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/PluginEditor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,9 @@ void PluginEditor::resized()
611611
}
612612
#endif
613613

614+
pd->lastUIWidth = getWidth();
615+
pd->lastUIHeight = getHeight();
616+
614617
if (isInPluginMode()) {
615618
nvgSurface.updateBounds(getLocalBounds().withTrimmedTop(pluginMode->isWindowFullscreen() ? 0 : 40));
616619
return;
@@ -697,9 +700,6 @@ void PluginEditor::resized()
697700

698701
welcomePanelSearchInput.setBounds(libraryPanelSelector.getRight() + 10, 4, welcomePanelSearchButton.getX() - libraryPanelSelector.getRight() - 20, toolbarHeight - 4);
699702

700-
pd->lastUIWidth = getWidth();
701-
pd->lastUIHeight = getHeight();
702-
703703
repaint(); // Some outlines are dependent on whether or not the sidebars are expanded, or whether or not a patch is opened
704704
}
705705

0 commit comments

Comments
 (0)