Created attachment 145579 [details] Video of the issue SUMMARY When in edit mode on an entry in the clipboard, it is still possible to clear the clipboard history. Doing so makes whatever edit you've done disappear, even after you've clicked save. When the edit mode was a separate window, saving would generate a new entry with the text instead. STEPS TO REPRODUCE 1. Copy some text to the clipboard 2. Click edit 3. Clear history 4. Save OBSERVED RESULT The saved text is gone with the rest of the clipboard contents EXPECTED RESULT The clipboard contains the last saved entry SOFTWARE OS: KDE neon Testing Edition KDE Plasma Version: 5.23.90 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION The previous behavior was that saving would add back the edited text to the clipboard, but it's not obvious if that is the right way to solve this. Maybe it shouldn't be possible to clear history while editing, or clearing should kick you out of the editing mode instead.
Maybe we should disable the "clear all" button while editing an entry?
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1388
*** Bug 451362 has been marked as a duplicate of this bug. ***
Git commit d8a82878c247dc33d09cec01d09652948a789d61 by Bharadwaj Raju. Committed on 09/12/2022 at 03:55. Pushed by bharadwaj-raju into branch 'master'. applets/clipboard: Hide clear button when editing M +3 -0 applets/clipboard/contents/ui/EditPage.qml M +2 -1 applets/clipboard/contents/ui/clipboard.qml https://invent.kde.org/plasma/plasma-workspace/commit/d8a82878c247dc33d09cec01d09652948a789d61