diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-16 06:28:00 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-16 06:28:00 +0200 |
commit | dd114c2e44f5e5a4b5058db8bb9e37232d28eade (patch) | |
tree | 8b6101aa421a55e3cb02a882117ece810213d577 /src/ui | |
parent | e455699fca461e7e73d920a9ebfe557c20a67f98 (diff) |
Cleanup: Omit empty sitespec.ini sections
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 5cd8a582..94e4b00c 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -3265,9 +3265,11 @@ static void closeSiteSpecific_(iWidget *dlg) { | |||
3265 | 3265 | ||
3266 | static iBool siteSpecificSettingsHandler_(iWidget *dlg, const char *cmd) { | 3266 | static iBool siteSpecificSettingsHandler_(iWidget *dlg, const char *cmd) { |
3267 | if (equal_Command(cmd, "cancel")) { | 3267 | if (equal_Command(cmd, "cancel")) { |
3268 | const iBool wasNoFade = (flags_Widget(dlg) & noFadeBackground_WidgetFlag) != 0; | ||
3268 | iInputWidget *palSeed = findChild_Widget(dlg, "sitespec.palette"); | 3269 | iInputWidget *palSeed = findChild_Widget(dlg, "sitespec.palette"); |
3269 | setText_InputWidget(palSeed, userData_Object(dlg)); | 3270 | setText_InputWidget(palSeed, userData_Object(dlg)); |
3270 | updateSiteSpecificTheme_(palSeed, dlg); | 3271 | updateSiteSpecificTheme_(palSeed, dlg); |
3272 | setFlags_Widget(dlg, noFadeBackground_WidgetFlag, wasNoFade); | ||
3271 | closeSiteSpecific_(dlg); | 3273 | closeSiteSpecific_(dlg); |
3272 | return iTrue; | 3274 | return iTrue; |
3273 | } | 3275 | } |