@@ -117,7 +117,7 @@ public void ShellRun(string cmd, string filename = "cmd.exe")
117117 ShellCommand . Execute ( startInfo ) ;
118118 }
119119
120- public void CopyToClipboard ( string stringToCopy , bool directCopy = false )
120+ public void CopyToClipboard ( string stringToCopy , bool directCopy = false , bool showDefaultNotification = true )
121121 {
122122 if ( string . IsNullOrEmpty ( stringToCopy ) )
123123 return ;
@@ -132,20 +132,21 @@ public void CopyToClipboard(string stringToCopy, bool directCopy = false)
132132
133133 Clipboard . SetFileDropList ( paths ) ;
134134
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" ) ) ;
138139 }
139140 else
140141 {
141142 Clipboard . SetDataObject ( stringToCopy ) ;
142143
143- ShowMsg (
144- $ "{ GetTranslation ( "copy" ) } { GetTranslation ( "textTitle" ) } ",
145- GetTranslation ( "completedSuccessfully" ) ) ;
144+ if ( showDefaultNotification )
145+ ShowMsg (
146+ $ "{ GetTranslation ( "copy" ) } { GetTranslation ( "textTitle" ) } ",
147+ GetTranslation ( "completedSuccessfully" ) ) ;
146148 }
147149 }
148-
149150
150151 public void StartLoadingBar ( ) => _mainVM . ProgressBarVisibility = Visibility . Visible ;
151152
0 commit comments