comparison src/name/blackcap/clipman/PasteboardQueue.kt @ 30:0e88c6bed11e

Remove the troublesome delete command(s).
author David Barts <n5jrn@me.com>
date Wed, 29 Jan 2020 21:56:12 -0800
parents c4f53bc01732
children 0c6c18a733b7
comparison
equal deleted inserted replaced
29:c4f53bc01732 30:0e88c6bed11e
62 verticalScrollBar.run { value = maximum + 1 } 62 verticalScrollBar.run { value = maximum + 1 }
63 } 63 }
64 } 64 }
65 queue.addLast(item) 65 queue.addLast(item)
66 truncate() 66 truncate()
67 }
68
69 /**
70 * Delete something from the queue.
71 * @param object to delete
72 */
73 @Synchronized fun delete(item: QueueItem) {
74 if (queue.remove(item)) {
75 parent.validate()
76 }
77 } 67 }
78 68
79 /** 69 /**
80 * Find and highlight the next occurrence of the specified string 70 * Find and highlight the next occurrence of the specified string
81 * @param string to search 71 * @param string to search