| Summary: | When taking a second screenshot after saving a first one, Spectacle sometimes falsely claims to have saved the file | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | Adam Fontenot <adam.m.fontenot+kde> |
| Component: | General | Assignee: | Boudhayan Gupta <me> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | antonio.prcela, kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 22.04.2 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/spectacle/commit/ecbfc45440f747b9c54bd216e144d38d3b102b66 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Adam Fontenot
2022-06-29 00:27:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/145 (In reply to Bug Janitor Service from comment #1) > A possibly relevant merge request was started @ > https://invent.kde.org/graphics/spectacle/-/merge_requests/145 I had a quick look at the merge request and it seems like it's supposed to hide the message on a timer? That would help but it's not the core issue here. When I click the "take a new screenshot" button, the message disappears immediately. There's presumably some bit of code hooked up to the button to do that, and I think it would make sense to have it fire every time a new screenshot is taken, including when that happens because of an activation key. That's the point, the message never disappears. With this change, it works as you have described in "expected". (In reply to Antonio Prcela from comment #3) > That's the point, the message never disappears. With this change, it works > as you have described in "expected". Maybe I misunderstood what the change is doing. It appears to make the message disappear after 10 seconds. That's not what I'm looking for, notwithstanding anything I said about the expected results. Right now, the "file saved" notification stays active indefinitely. That seems fine to me. When you click the "Take a New Screenshot" button, the notification disappears immediately, which also seems right. (If you take a new screenshot, then it won't have been saved, so the message would be misleading if it remained.) The problem is that when you activate Spectacle by clicking an activation key, a new screenshot is taken but the message doesn't go away. Making it so that the message went away after 10 seconds unconditionally would be a bad idea in my estimation. It would make it less clear in some cases that an image had been saved, and if you took a new screenshot quickly enough after saving the previous one, the "saved" message would still be visible for a few seconds until it disappeared. In that case it wouldn't even solve the problem of Spectacle falsely claiming to have saved the file. Git commit ecbfc45440f747b9c54bd216e144d38d3b102b66 by Antonio Prcela. Committed on 22/07/2022 at 16:14. Pushed by aprcela into branch 'master'. Reenable autohiding of inline message This change commented the lines, hence the inline message never hides: https://invent.kde.org/graphics/spectacle/-/commit/9658891adf8275ac69d874e8753b92dd20060618#c59784b9993edc6ebf92ca55c1465735a8cca131_234_241 also: don't hide for all kind of messages. Keep for saved screenshots, until next screenshot has been taken M +7 -5 src/Gui/KSMainWindow.cpp M +1 -0 src/Gui/KSWidget.cpp M +1 -0 src/Gui/KSWidget.h https://invent.kde.org/graphics/spectacle/commit/ecbfc45440f747b9c54bd216e144d38d3b102b66 |