mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
add confirmation popup for clearing the queue
bump version
This commit is contained in:
parent
e6d180ecef
commit
b288c6c490
2
gomu.go
2
gomu.go
@ -9,7 +9,7 @@ import (
|
||||
"github.com/ztrue/tracerr"
|
||||
)
|
||||
|
||||
const VERSION = "v1.4.1"
|
||||
const VERSION = "v1.5.0"
|
||||
|
||||
var gomu *Gomu
|
||||
|
||||
|
7
queue.go
7
queue.go
@ -386,7 +386,12 @@ func newQueue() *Queue {
|
||||
case 'd':
|
||||
queue.deleteItem(queue.GetCurrentItem())
|
||||
case 'D':
|
||||
queue.clearQueue()
|
||||
|
||||
confirmationPopup("Are you sure to clear the queue?", func(_ int, label string) {
|
||||
if label == "yes" {
|
||||
queue.clearQueue()
|
||||
}
|
||||
})
|
||||
case 'l':
|
||||
a, err := queue.deleteItem(queue.GetCurrentItem())
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user