summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-02-16 06:28:00 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-02-16 06:28:00 +0200
commitdd114c2e44f5e5a4b5058db8bb9e37232d28eade (patch)
tree8b6101aa421a55e3cb02a882117ece810213d577 /src/ui
parente455699fca461e7e73d920a9ebfe557c20a67f98 (diff)
Cleanup: Omit empty sitespec.ini sections
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/util.c2
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
3266static iBool siteSpecificSettingsHandler_(iWidget *dlg, const char *cmd) { 3266static 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 }