public static MenuFlyoutItem GetRefreshDirectoryItem(FolderTree tree, Action <FolderTree> afterTreeUpdated = null) { var item = new MenuFlyoutItem() { Icon = new SymbolIcon(Symbol.Refresh), Text = Helper.Localize("Refresh Directory") }; item.Click += (s, args) => { SettingsPage.CheckNewMusic(tree, afterTreeUpdated); }; return(item); }
private void LocalRefreshItem_Tapped(object sender, TappedRoutedEventArgs e) { SettingsPage.CheckNewMusic(History.Peek(), tree => { if (LocalFoldersItem.IsSelected) { FolderListener.UpdatePage(tree); MusicListener?.UpdatePage(tree); } else { MusicListener.UpdatePage(tree); FolderListener?.UpdatePage(tree); } }); }