File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 18
18
<system : String x : Key =" copy" >Copy</system : String >
19
19
<system : String x : Key =" cut" >Cut</system : String >
20
20
<system : String x : Key =" paste" >Paste</system : String >
21
+ <system : String x : Key =" fileTitle" >File</system : String >
22
+ <system : String x : Key =" folderTitle" >Folder</system : String >
23
+ <system : String x : Key =" textTitle" >Text</system : String >
21
24
<system : String x : Key =" GameMode" >Game Mode</system : String >
22
25
<system : String x : Key =" GameModeToolTip" >Suspend the use of Hotkeys.</system : String >
23
26
Original file line number Diff line number Diff line change @@ -890,18 +890,28 @@ public void ResultCopy(string stringToCopy)
890
890
if ( result != null )
891
891
{
892
892
string copyText = string . IsNullOrEmpty ( result . CopyText ) ? result . SubTitle : result . CopyText ;
893
- if ( File . Exists ( copyText ) || Directory . Exists ( copyText ) )
893
+ var isFile = File . Exists ( copyText ) ;
894
+ var isFolder = Directory . Exists ( copyText ) ;
895
+ if ( isFile || isFolder )
894
896
{
895
-
896
897
var paths = new StringCollection ( ) ;
897
898
paths . Add ( copyText ) ;
898
899
899
900
Clipboard . SetFileDropList ( paths ) ;
900
-
901
+ App . API . ShowMsg (
902
+ App . API . GetTranslation ( "copy" )
903
+ + " "
904
+ + ( isFile ? App . API . GetTranslation ( "fileTitle" ) : App . API . GetTranslation ( "folderTitle" ) ) ,
905
+ App . API . GetTranslation ( "completedSuccessfully" ) ) ;
901
906
}
902
907
else
903
908
{
904
909
Clipboard . SetDataObject ( copyText . ToString ( ) ) ;
910
+ App . API . ShowMsg (
911
+ App . API . GetTranslation ( "copy" )
912
+ + " "
913
+ + App . API . GetTranslation ( "textTitle" ) ,
914
+ App . API . GetTranslation ( "completedSuccessfully" ) ) ;
905
915
}
906
916
}
907
917
You can’t perform that action at this time.
0 commit comments