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:
parent
62899a32f4
commit
5d839c3e97
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user