Added Thumbnail to ClipboardHistory images, fix keyboard navigation
ClipboardHistory: Add image thumbnail, fix navigation viewport Launcher: replace TextField with NTextInput
This commit is contained in:
parent
468272d4c9
commit
9781005a21
4 changed files with 87 additions and 73 deletions
|
|
@ -27,6 +27,9 @@ Singleton {
|
|||
property var imageDataById: ({})
|
||||
property int revision: 0
|
||||
|
||||
// Approximate first-seen timestamps for entries this session (seconds)
|
||||
property var firstSeenById: ({})
|
||||
|
||||
// Internal: store callback for decode
|
||||
property var _decodeCallback: null
|
||||
|
||||
|
|
@ -131,6 +134,10 @@ Singleton {
|
|||
else
|
||||
mime = "image/*"
|
||||
}
|
||||
// Record first seen time for new ids (approximate copy time)
|
||||
if (!root.firstSeenById[id]) {
|
||||
root.firstSeenById[id] = Time.timestamp
|
||||
}
|
||||
return {
|
||||
"id": id,
|
||||
"preview": preview,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue