// callback handlers public void OpenSettings() { if (currentFormSettings != null) { currentFormSettings.BringToFront(); } else { bool prevEnableUpdateCheck = Config.EnableUpdateCheck; currentFormSettings = new FormSettings(this, plugins, updates); currentFormSettings.FormClosed += (sender, args) => { currentFormSettings = null; if (!prevEnableUpdateCheck && Config.EnableUpdateCheck) { updates.Settings.DismissedUpdate = string.Empty; Config.DismissedUpdate = string.Empty; Config.Save(); updates.Check(false); } if (!Config.EnableTrayHighlight) { trayIcon.HasNotifications = false; } UpdateProperties(PropertyBridge.Properties.ExpandLinksOnHover | PropertyBridge.Properties.HasCustomNotificationSound); }; ShowChildForm(currentFormSettings); } }