mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-03 07:34:30 +00:00
Add notification when uploading images
This commit is contained in:
@@ -101,6 +101,8 @@ void Controller::initDefaults() {
|
||||
void Controller::slotPrintHotkey() {
|
||||
if (!m_captureWindow) {
|
||||
m_captureWindow = new CaptureWidget();
|
||||
connect(m_captureWindow, &CaptureWidget::newMessage,
|
||||
this, &Controller::showMessage);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,3 +119,7 @@ void Controller::openInfoWindow() {
|
||||
m_infoWindow = new InfoWindow();
|
||||
}
|
||||
}
|
||||
|
||||
void Controller::showMessage(QString msg) {
|
||||
m_trayIcon->showMessage("Flameshot Info", msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user