Fix bugs with saving resize positions on vsts

pull/283/head
James H Ball 2025-02-03 15:20:22 +00:00
rodzic 445f56b520
commit 37f4252a00
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -63,8 +63,10 @@ void SettingsComponent::resized() {
effects.setBounds(dummyBounds);
audioProcessor.setProperty("midiLayoutPreferredSize", midiLayout.getItemCurrentRelativeSize(2));
audioProcessor.setProperty("mainLayoutPreferredSize", mainLayout.getItemCurrentRelativeSize(0));
if (isVisible() && getWidth() > 0 && getHeight() > 0) {
audioProcessor.setProperty("midiLayoutPreferredSize", midiLayout.getItemCurrentRelativeSize(2));
audioProcessor.setProperty("mainLayoutPreferredSize", mainLayout.getItemCurrentRelativeSize(0));
}
repaint();
}