mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-30 13:48:50 +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"
|
"github.com/ztrue/tracerr"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "v1.4.1"
|
const VERSION = "v1.5.0"
|
||||||
|
|
||||||
var gomu *Gomu
|
var gomu *Gomu
|
||||||
|
|
||||||
|
5
queue.go
5
queue.go
@ -386,7 +386,12 @@ func newQueue() *Queue {
|
|||||||
case 'd':
|
case 'd':
|
||||||
queue.deleteItem(queue.GetCurrentItem())
|
queue.deleteItem(queue.GetCurrentItem())
|
||||||
case 'D':
|
case 'D':
|
||||||
|
|
||||||
|
confirmationPopup("Are you sure to clear the queue?", func(_ int, label string) {
|
||||||
|
if label == "yes" {
|
||||||
queue.clearQueue()
|
queue.clearQueue()
|
||||||
|
}
|
||||||
|
})
|
||||||
case 'l':
|
case 'l':
|
||||||
a, err := queue.deleteItem(queue.GetCurrentItem())
|
a, err := queue.deleteItem(queue.GetCurrentItem())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user