public void HideMods(bool value) { if (!QSettings.Instance.isHidden && value) { PopulateAppLauncherButtons(); } for (int _i = ModsToolbar.Count - 1; _i >= 0; --_i) { QMods _qMods = ModsToolbar[_i]; if (!_qMods.CanBeHide) { continue; } if (value) { if (_qMods.CanSetFalse) { _qMods.SetFalse(); } } _qMods.isHidden = value; } if (QSettings.Instance.isHidden != value) { QSettings.Instance.isHidden = value; QSettings.Instance.Save(); QStockToolbar.Instance.Refresh(); BlizzyToolbar.Refresh(); } Log((QSettings.Instance.isHidden ? "Hide mods buttons" : "Show mods buttons")); }
void Save() { QStockToolbar.Instance.Reset(); BlizzyToolbar.Reset(); if (QEditor.Instance != null) { QEditor.Instance.Refresh(); } QSettings.Instance.Save(); }