Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Spectacle
Commits
9187981f
Commit
9187981f
authored
Nov 01, 2021
by
Antonio Prcela
🏞
Committed by
Nate Graham
Nov 03, 2021
Browse files
Do not duplicate text when using -c
BUG: 433221
parent
2434133b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SpectacleCore.cpp
View file @
9187981f
...
...
@@ -441,10 +441,13 @@ void SpectacleCore::doNotify(const QUrl &theSavedAt)
// a speaking message is prettier than a URL, special case for copy to clipboard and the default pictures location
const
QString
&
lSavePath
=
theSavedAt
.
adjusted
(
QUrl
::
RemoveFilename
|
QUrl
::
StripTrailingSlash
).
path
();
if
(
mSaveToOutput
)
{
static
bool
isBackgroundMode
=
(
mStartMode
==
SpectacleCore
::
StartMode
::
Background
);
if
(
mSaveToOutput
||
isBackgroundMode
)
{
lNotify
->
setText
(
i18n
(
"A screenshot was saved as '%1' to '%2'."
,
theSavedAt
.
fileName
(),
lSavePath
));
// set to false so it won't show the same message twice
mSaveToOutput
=
false
;
isBackgroundMode
=
false
;
}
else
if
(
mCopyImageToClipboard
)
{
lNotify
->
setText
(
i18n
(
"A screenshot was saved to your clipboard."
));
}
else
if
(
lSavePath
==
QStandardPaths
::
writableLocation
(
QStandardPaths
::
PicturesLocation
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment