private static void ExecuteSongBrowserAction(SongBrowserAction action) { var _songBrowserUI = SongBrowserApplication.Instance.GetPrivateField <SongBrowser.UI.SongBrowserUI>("_songBrowserUI"); if (_songBrowserUI) { if (action.HasFlag(SongBrowserAction.ResetFilter)) { _songBrowserUI.Model.Settings.filterMode = SongFilterMode.None; } } }
private static void ExecuteSongBrowserAction(SongBrowserAction action) { var _songBrowserUI = SongBrowserApplication.Instance.GetPrivateField <SongBrowserPlugin.UI.SongBrowserUI>("_songBrowserUI"); if (_songBrowserUI) { if (action.HasFlag(SongBrowserAction.ResetFilter)) { _songBrowserUI.Model.Settings.filterMode = SongFilterMode.None; if (!action.HasFlag(SongBrowserAction.Refresh)) { action |= SongBrowserAction.Refresh; } } if (action.HasFlag(SongBrowserAction.Refresh)) { _songBrowserUI.UpdateSongList(); _songBrowserUI.RefreshSongList(); } } }