mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-04 08:07:00 +00:00
Emit dbus captureSaved signal when saving files
New captureSaved signal contains the request ID and canonical path of the saved file. This allows a dbus listener interested in postprocessing files access to the path most recently written.
This commit is contained in:
@@ -1108,9 +1108,10 @@ void CaptureWidget::saveScreenshot()
|
||||
}
|
||||
hide();
|
||||
if (m_context.savePath.isEmpty()) {
|
||||
ScreenshotSaver().saveToFilesystemGUI(pixmap());
|
||||
ScreenshotSaver(m_id).saveToFilesystemGUI(pixmap());
|
||||
} else {
|
||||
ScreenshotSaver().saveToFilesystem(pixmap(), m_context.savePath, "");
|
||||
ScreenshotSaver(m_id).saveToFilesystem(
|
||||
pixmap(), m_context.savePath, "");
|
||||
}
|
||||
close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user