private void executeFileAction(string action, string path) { switch (action) { case CustomCommands.DirectoryActions.OpenFolder: if (Settings.Instance.EnableDynamicDesktop) { _desktopManager.NavigationManager.NavigateTo(path); } else { FolderHelper.OpenLocation(path); } break; case CustomCommands.Actions.Rename: file.RequestInteractiveRename(this); break; case CustomCommands.DirectoryActions.AddStack: case CustomCommands.DirectoryActions.RemoveStack: case CustomCommands.Actions.OpenWithShell: CustomCommands.PerformAction(action, path); break; default: if (action != CustomCommands.Actions.Cut && action != CustomCommands.Actions.Copy && action != CustomCommands.Actions.Link) { _desktopManager.IsOverlayOpen = false; } break; } }
private void executeFileAction(string action, string path) { if (action == "openFolder") { if (Settings.Instance.EnableDynamicDesktop) { DesktopManager.Instance.NavigationManager.NavigateTo(path); } else { FolderHelper.OpenLocation(path); } } else if (action == "rename") { file.RequestInteractiveRename(this); } else if (action == "addStack" || action == "removeStack" || action == "openWithShell") { CustomCommands.PerformAction(action, path); } else if (action != "cut" && action != "copy" && action != "link") { DesktopManager.Instance.IsOverlayOpen = false; } }