Next try to make the settings modal work

This commit is contained in:
SimoZ64
2025-05-22 23:39:05 +02:00
parent ca21e57835
commit 1de29dd76d
5 changed files with 10 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ SettingsWindow::SettingsWindow() : settings{JSONOpenOrCreate("resources/settings
apply.setEnabled(false);
canvas.setFunc([&]() {
popup.setFunc([&]() {
tabs.render();
if(apply.render()) {
@@ -69,7 +69,7 @@ SettingsWindow::SettingsWindow() : settings{JSONOpenOrCreate("resources/settings
}
bool SettingsWindow::render() {
if(canvas.render())
if(popup.render())
return true;
return false;