1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-14 09:42:10 -04:00

clipboard: touch copied history entry

- makes it appear at the top of the history
This commit is contained in:
bbedward
2026-01-28 16:09:32 -05:00
parent f00854879c
commit 2deeab9d08
2 changed files with 27 additions and 0 deletions

View File

@@ -146,6 +146,11 @@ func handleCopyEntry(conn net.Conn, req models.Request, m *Manager) {
return
}
if err := m.TouchEntry(uint64(id)); err != nil {
models.RespondError(conn, req.ID, err.Error())
return
}
models.Respond(conn, req.ID, models.SuccessResult{Success: true, Message: "copied to clipboard"})
}