mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +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:
@@ -269,6 +269,10 @@ bool GUIPrefs::Commit()
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
// Reads preference /GUI/Theme
|
||||
theTheme.LoadPreferredTheme();
|
||||
ThemePrefs::ApplyUpdatedImages();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user