Add notification when uploading images
This commit is contained in:
@@ -355,6 +355,7 @@ void CaptureWidget::uploadScreenshot() {
|
||||
s.uploadToImgur(am, getExtendedSelection());
|
||||
}
|
||||
hide();
|
||||
Q_EMIT newMessage("Uploading image...");
|
||||
}
|
||||
|
||||
void CaptureWidget::undo() {
|
||||
|
||||
@@ -44,6 +44,9 @@ public:
|
||||
|
||||
void redefineButtons();
|
||||
|
||||
signals:
|
||||
void newMessage(QString);
|
||||
|
||||
private slots:
|
||||
void saveScreenshot();
|
||||
void copyScreenshot();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ private slots:
|
||||
void slotPrintHotkey();
|
||||
void openConfigWindow();
|
||||
void openInfoWindow();
|
||||
void showMessage(QString);
|
||||
|
||||
private:
|
||||
void createActions();
|
||||
|
||||
Reference in New Issue
Block a user