private void UpdateSelectionState() { PurgeOrphans.PurgeOrphanZips(); foreach (TextMeshProUGUI text in selectionHelpers) { if (text.fontStyle != FontStyles.Normal) { text.fontStyle = FontStyles.Normal; } } switch (selectionState) { case SelectionState.none: selectionHelpers[2].fontStyle = FontStyles.Underline | FontStyles.Bold; break; case SelectionState.all: selectionHelpers[1].fontStyle = FontStyles.Underline | FontStyles.Bold; break; case SelectionState.today: selectionHelpers[0].fontStyle = FontStyles.Underline | FontStyles.Bold; break; case SelectionState.custom: break; } }
public void OnDeleteFiles() { shareAndDelete.OnDeleteSelectedFiles(FileManager.JsonDirectories); PurgeOrphans.DestroyOrphanButtons(FileManager.JsonDirectories); filebrowserManager.Start(); }
/// clean up after leaving the file browser private void OnDisable() { PurgeOrphans.PurgeOrphanZips(); PurgeOrphans.PurgeErrorMessages(); PurgeOrphans.DestroyOrphanButtons(FileManager.JsonDirectories); }