From dd114c2e44f5e5a4b5058db8bb9e37232d28eade Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 16 Feb 2022 06:28:00 +0200 Subject: Cleanup: Omit empty sitespec.ini sections --- src/ui/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ui') 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) { static iBool siteSpecificSettingsHandler_(iWidget *dlg, const char *cmd) { if (equal_Command(cmd, "cancel")) { + const iBool wasNoFade = (flags_Widget(dlg) & noFadeBackground_WidgetFlag) != 0; iInputWidget *palSeed = findChild_Widget(dlg, "sitespec.palette"); setText_InputWidget(palSeed, userData_Object(dlg)); updateSiteSpecificTheme_(palSeed, dlg); + setFlags_Widget(dlg, noFadeBackground_WidgetFlag, wasNoFade); closeSiteSpecific_(dlg); return iTrue; } -- cgit v1.2.3