1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-08 12:13:31 -04:00

fix(Clipboard): stale image entry handling

- Resolved random DMS API errors & QML Warnings
This commit is contained in:
purian23
2026-06-03 03:17:02 -04:00
parent 510269dda9
commit a34fda984d
6 changed files with 290 additions and 18 deletions
@@ -2,6 +2,7 @@ package clipboard
import (
"encoding/json"
"errors"
"fmt"
"net"
@@ -73,6 +74,10 @@ func handleGetEntry(conn net.Conn, req models.Request, m *Manager) {
entry, err := m.GetEntry(uint64(id))
if err != nil {
if errors.Is(err, errEntryNotFound) {
models.Respond[any](conn, req.ID, nil)
return
}
models.RespondError(conn, req.ID, err.Error())
return
}