Show "Copied to clipboard" message only when copying after tray icon click.
This commit is contained in:
		
							parent
							
								
									54f809707c
								
							
						
					
					
						commit
						6358629269
					
				@ -261,6 +261,9 @@ void Manager::processTrayAction (QSystemTrayIcon::ActivationReason reason) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
  else if (reason == QSystemTrayIcon::MiddleClick && clipboardAction_->isEnabled ()) {
 | 
					  else if (reason == QSystemTrayIcon::MiddleClick && clipboardAction_->isEnabled ()) {
 | 
				
			||||||
    copyLastToClipboard  ();
 | 
					    copyLastToClipboard  ();
 | 
				
			||||||
 | 
					    trayIcon_->showMessage (tr ("Результат"),
 | 
				
			||||||
 | 
					                            tr ("Последний результат был скопирован в буфер обмена."),
 | 
				
			||||||
 | 
					                            QSystemTrayIcon::Information);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  else if (reason == QSystemTrayIcon::DoubleClick && repeatCaptureAction_->isEnabled ()) {
 | 
					  else if (reason == QSystemTrayIcon::DoubleClick && repeatCaptureAction_->isEnabled ()) {
 | 
				
			||||||
    repeatCapture ();
 | 
					    repeatCapture ();
 | 
				
			||||||
@ -283,9 +286,6 @@ void Manager::copyLastToClipboard () {
 | 
				
			|||||||
      message += " - " + item.translated;
 | 
					      message += " - " + item.translated;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    clipboard->setText (message);
 | 
					    clipboard->setText (message);
 | 
				
			||||||
    trayIcon_->showMessage (tr ("Результат"),
 | 
					 | 
				
			||||||
                            tr ("Последний результат был скопирован в буфер обмена."),
 | 
					 | 
				
			||||||
                            QSystemTrayIcon::Information);
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user