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

fix(ClipboardEditor): Support legacy QT 6.xx decoding & large clipboard data

This commit is contained in:
purian23
2026-05-26 16:38:32 -04:00
parent 89f86be00a
commit a366bf3ca0
2 changed files with 30 additions and 22 deletions
+1
View File
@@ -418,6 +418,7 @@ func handleConnection(conn net.Conn) {
conn.Write(capsData)
conn.Write([]byte("\n"))
scanner := bufio.NewScanner(conn)
scanner.Buffer(make([]byte, bufio.MaxScanTokenSize), 64*1024*1024) // grow up to 64 MB for large clipboard payloads
for scanner.Scan() {
line := scanner.Bytes()