https://bugs.kde.org/show_bug.cgi?id=449150

ratijas <m...@ratijas.tk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kdeplasma-addons/commit/
                   |                            |0852fff37d034b18d70803dc8dd
                   |                            |294a426565888
         Resolution|---                         |FIXED

--- Comment #3 from ratijas <m...@ratijas.tk> ---
Git commit 0852fff37d034b18d70803dc8dd294a426565888 by ivan tkachenko.
Committed on 29/06/2022 at 15:05.
Pushed by ratijas into branch 'master'.

applets/notes: Save/restore scrolling and cursor position

Makes scrolling position persistent, and takes some care to
1. delay restoring until the text is laid out,
2. throttle storage a little, so that we don't use too much I/O.

Component.onDestruction correctly saves the position on exit. It can be
tested via D-Bus by calling method quit() at:

- Session bus: org.kde.plasmashell
- Object path: /MainApplication
- Interface: org.qtproject.Qt.QCoreApplication

Cursor position restoration can be tested by assigning a global shortcut
to an applet, so that it can become focused without actually clicking
on it with a mouse and messing with cursor position. Text selection is
not handled, and I don't think we should even bother with it.

M  +13   -0    applets/notes/package/contents/config/main.xml
M  +45   -0    applets/notes/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/commit/0852fff37d034b18d70803dc8dd294a426565888

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to