@@ -117,7 +117,7 @@ public void ShellRun(string cmd, string filename = "cmd.exe")
117
117
ShellCommand . Execute ( startInfo ) ;
118
118
}
119
119
120
- public void CopyToClipboard ( string stringToCopy , bool directCopy = false )
120
+ public void CopyToClipboard ( string stringToCopy , bool directCopy = false , bool showDefaultNotification = true )
121
121
{
122
122
if ( string . IsNullOrEmpty ( stringToCopy ) )
123
123
return ;
@@ -132,20 +132,21 @@ public void CopyToClipboard(string stringToCopy, bool directCopy = false)
132
132
133
133
Clipboard . SetFileDropList ( paths ) ;
134
134
135
- ShowMsg (
136
- $ "{ GetTranslation ( "copy" ) } { ( isFile ? GetTranslation ( "fileTitle" ) : GetTranslation ( "folderTitle" ) ) } ",
137
- GetTranslation ( "completedSuccessfully" ) ) ;
135
+ if ( showDefaultNotification )
136
+ ShowMsg (
137
+ $ "{ GetTranslation ( "copy" ) } { ( isFile ? GetTranslation ( "fileTitle" ) : GetTranslation ( "folderTitle" ) ) } ",
138
+ GetTranslation ( "completedSuccessfully" ) ) ;
138
139
}
139
140
else
140
141
{
141
142
Clipboard . SetDataObject ( stringToCopy ) ;
142
143
143
- ShowMsg (
144
- $ "{ GetTranslation ( "copy" ) } { GetTranslation ( "textTitle" ) } ",
145
- GetTranslation ( "completedSuccessfully" ) ) ;
144
+ if ( showDefaultNotification )
145
+ ShowMsg (
146
+ $ "{ GetTranslation ( "copy" ) } { GetTranslation ( "textTitle" ) } ",
147
+ GetTranslation ( "completedSuccessfully" ) ) ;
146
148
}
147
149
}
148
-
149
150
150
151
public void StartLoadingBar ( ) => _mainVM . ProgressBarVisibility = Visibility . Visible ;
151
152
0 commit comments