remove lock button for now
This commit is contained in:
parent
5884343a41
commit
dc56b91fc7
25
main.go
25
main.go
@ -82,17 +82,19 @@ func main() {
|
|||||||
|
|
||||||
keyList.ShowHeaderColumn = false
|
keyList.ShowHeaderColumn = false
|
||||||
|
|
||||||
var lockerButton *widget.Button
|
/*
|
||||||
lockerButton = widget.NewButton("Lock Agent", func() {
|
var lockerButton *widget.Button
|
||||||
// TODO: is there a better way?
|
lockerButton = widget.NewButton("Lock Agent", func() {
|
||||||
if tagent.locked {
|
// TODO: is there a better way?
|
||||||
tagent.Unlock([]byte(""))
|
if tagent.locked {
|
||||||
lockerButton.SetText("Lock Agent")
|
tagent.Unlock([]byte(""))
|
||||||
} else {
|
lockerButton.SetText("Lock Agent")
|
||||||
tagent.Lock([]byte(""))
|
} else {
|
||||||
lockerButton.SetText("Unlock Agent")
|
tagent.Lock([]byte(""))
|
||||||
}
|
lockerButton.SetText("Unlock Agent")
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
*/
|
||||||
|
|
||||||
app.SetIcon(buildImage(len(tagent.keys), tagent.locked))
|
app.SetIcon(buildImage(len(tagent.keys), tagent.locked))
|
||||||
|
|
||||||
@ -185,7 +187,6 @@ func main() {
|
|||||||
container.NewBorder(
|
container.NewBorder(
|
||||||
container.New(
|
container.New(
|
||||||
layout.NewHBoxLayout(),
|
layout.NewHBoxLayout(),
|
||||||
lockerButton,
|
|
||||||
widget.NewButton("Remove Keys", func() {
|
widget.NewButton("Remove Keys", func() {
|
||||||
tagent.RemoveAll()
|
tagent.RemoveAll()
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user