1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-02 17:23:18 +02:00

Lower the image updating for theme into GUIPrefs::Commit()...

... weakening dependency of PrefsDialog.cpp on particular preference page
implementations
This commit is contained in:
Paul Licameli 2019-05-19 18:19:55 -04:00
parent 62899a32f4
commit 5d839c3e97
2 changed files with 4 additions and 5 deletions

View File

@ -269,6 +269,10 @@ bool GUIPrefs::Commit()
gPrefs->Flush();
}
// Reads preference /GUI/Theme
theTheme.LoadPreferredTheme();
ThemePrefs::ApplyUpdatedImages();
return true;
}

View File

@ -68,7 +68,6 @@
#include "MidiIOPrefs.h"
#endif
#include "../Theme.h"
#include "../widgets/HelpSystem.h"
#if wxUSE_ACCESSIBILITY
@ -813,10 +812,6 @@ void PrefsDialog::OnOK(wxCommandEvent & WXUNUSED(event))
}
gPrefs->Flush();
// Reads preference /GUI/Theme
theTheme.LoadPreferredTheme();
ThemePrefs::ApplyUpdatedImages();
SavePreferredPage();
#if USE_PORTMIXER