/// <summary> /// Called when settings changed. /// </summary> internal static void OnSettingsChanged() { if (Closed) { return; } Trace(); Settings.Save(); UpdateSettings(); SettingsChanged?.ThreadSafeInvoke(null, EventArgs.Empty); }