File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -935,16 +935,16 @@ private void RenameFile()
935935 // at runtime this is an instance the Flow.Launcher.Plugin.Explorer.Main
936936 dynamic explorerPlugin = GetExplorerPlugin ( ) ;
937937
938- if ( explorerPlugin == null && timesTriedToRenameFileWithExplorerDisabled > 3 )
939- {
940- App . API . ShowMsg ( App . API . GetTranslation ( "AreTryingToRenameFile" ) , App . API . GetTranslation ( "ExplorerNeedsEnabledForRenameFile" ) ) ;
941- timesTriedToRenameFileWithExplorerDisabled = 0 ;
942- return ;
943- }
944- else if ( explorerPlugin == null )
938+ if ( ! ( explorerPlugin != null ) )
945939 {
946940 timesTriedToRenameFileWithExplorerDisabled ++ ;
941+ if ( timesTriedToRenameFileWithExplorerDisabled > 3 )
942+ {
943+ App . API . ShowMsg ( App . API . GetTranslation ( "AreTryingToRenameFile" ) , App . API . GetTranslation ( "ExplorerNeedsEnabledForRenameFile" ) ) ;
944+ timesTriedToRenameFileWithExplorerDisabled = 0 ;
945+ }
947946 return ;
947+
948948 }
949949 else
950950 {
@@ -962,7 +962,7 @@ private IAsyncPlugin GetExplorerPlugin()
962962 {
963963 const string explorerPluginID = "572be03c74c642baae319fc283e561a8" ;
964964 IEnumerable < PluginPair > explorerPluginMatches = App . API . GetAllPlugins ( ) . Where (
965- plugin => plugin . Metadata . ID == explorerPluginID ) ;
965+ plugin => plugin . Metadata . ID == explorerPluginID && plugin . Metadata . Disabled != true ) ;
966966 if ( explorerPluginMatches . Any ( ) )
967967 {
968968 // assuming it's the first plugin as no 2 plugins can be loaded with the same ID
You can’t perform that action at this time.
0 commit comments