Added a timestamp to track clipboard changes, so when a new device connects it will sync the most recently updated clipboard to both devices.
Details
Details
- Reviewers
albertvaka - Group Reviewers
KDE Connect - Commits
- R224:779997337179: Clipboard sync on new connection
Diff Detail
Diff Detail
- Repository
- R224 KDE Connect
- Branch
- master
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 14175 Build 14193: arc lint + arc unit
plugins/clipboard/clipboardlistener.h | ||
---|---|---|
40 | Typically local variables are prefixed with m_<varname>, so like m_updateTimestamp. Of course, this should apply to currentContent as well... | |
61–62 | Usually getters are just named <varname>, so like qint64 updateTimestamp() | |
plugins/clipboard/clipboardplugin.cpp | ||
57 | Space before { | |
72 | } else { (Spaces) |
plugins/clipboard/clipboardplugin.cpp | ||
---|---|---|
61 ↗ | (On Diff #62121) | This can be simplified with the other if branch. |
plugins/clipboard/clipboardplugin.cpp | ||
---|---|---|
40 ↗ | (On Diff #62121) | As discussed, use a new packet type so this doesn't affect old apps. Also on Android. |