1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

clipboard: dont take ownership on nil offers

This commit is contained in:
bbedward
2025-12-11 15:55:42 -05:00
parent 6d66f93565
commit bdc0e8e0fc

View File

@@ -229,18 +229,6 @@ func (m *Manager) setupDataDeviceSync() {
m.ownerLock.Unlock()
if offer == nil {
if wasOwner {
return
}
m.persistMutex.RLock()
hasData := len(m.persistData) > 0
m.persistMutex.RUnlock()
if hasData {
log.Debug("Selection cleared, re-taking ownership")
m.post(func() {
m.takePersistOwnership()
})
}
return
}