mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
removed unnesscasry stuff
This commit is contained in:
parent
efe65956cc
commit
9f328143b9
5 changed files with 4 additions and 13 deletions
|
|
@ -557,5 +557,7 @@
|
|||
<system:String x:Key="LastModified">Last Modified</system:String>
|
||||
|
||||
|
||||
<system:String x:Key="RenameFileHotkey">dcdc</system:String>
|
||||
<system:String x:Key="RenameFileHotkey">Rename a file/directory</system:String>
|
||||
<system:String x:Key="AreTryingToRenameFile">Are you trying to rename a file?</system:String>
|
||||
<system:String x:Key="ExplorerNeedsEnabledForRenameFile">"The explorer plugin needs to be enabled for the hotkey to rename files to work."</system:String>
|
||||
</ResourceDictionary>
|
||||
|
|
|
|||
|
|
@ -946,7 +946,7 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
else if ((!explorerPluginMatches.Any() || explorerPluginMatches == null) && timesTriedToRenameFileWithExplorerDisabled > 3)
|
||||
{
|
||||
App.API.ShowMsg("Are you trying to rename a file?", "The explorer plugin needs to be enabled for the hotkey to rename files to work.");
|
||||
App.API.ShowMsg(App.API.GetTranslation("AreTryingToRenameFile"), App.API.GetTranslation("ExplorerNeedsEnabledForRenameFile"));
|
||||
timesTriedToRenameFileWithExplorerDisabled = 0;
|
||||
return;
|
||||
}
|
||||
|
|
@ -964,15 +964,9 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
if (Directory.Exists(path))
|
||||
{
|
||||
File.AppendAllText("YEE.idi", "YYEEE");
|
||||
explorerPlugin.Plugin.RenameDialog(new DirectoryInfo(path), App.API); // this feels kinda hacky
|
||||
return;
|
||||
}
|
||||
else if (new DirectoryInfo(path).Parent == null) // check if isn't a root directory like C:\
|
||||
{
|
||||
App.API.ShowMsgError("Cannot rename this.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@
|
|||
<system:String x:Key="plugin_explorer_actionkeywordview_filecontentsearch">File Content Search:</system:String>
|
||||
<system:String x:Key="plugin_explorer_actionkeywordview_indexsearch">Index Search:</system:String>
|
||||
<system:String x:Key="plugin_explorer_actionkeywordview_quickaccess">Quick Access:</system:String>
|
||||
<system:String x:Key="plugin_explorer_actionkeywordview_rename">Rename:</system:String>
|
||||
<system:String x:Key="plugin_explorer_actionkeyword_current">Current Action Keyword</system:String>
|
||||
<system:String x:Key="plugin_explorer_actionkeyword_done">Done</system:String>
|
||||
<system:String x:Key="plugin_explorer_actionkeyword_enabled">Enabled</system:String>
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ using System.Threading;
|
|||
using System.Threading.Tasks;
|
||||
using System.Windows.Controls;
|
||||
using Flow.Launcher.Plugin.Explorer.Exceptions;
|
||||
using System.Xml;
|
||||
using System.CodeDom;
|
||||
|
||||
namespace Flow.Launcher.Plugin.Explorer
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
|
@ -7,7 +6,6 @@ using System.Windows.Input;
|
|||
using System.Windows.Threading;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Flow.Launcher.Plugin.Explorer.Helper;
|
||||
using Microsoft.VisualBasic.Logging;
|
||||
|
||||
|
||||
namespace Flow.Launcher.Plugin.Explorer.Views
|
||||
|
|
|
|||
Loading…
Reference in a new issue