mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-11 12:48:12 +08:00
rewrite
This commit is contained in:
@@ -3,7 +3,6 @@ package gui
|
||||
import (
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/container"
|
||||
"fyne.io/fyne/v2/dialog"
|
||||
"fyne.io/fyne/v2/widget"
|
||||
)
|
||||
|
||||
@@ -35,12 +34,6 @@ func newContextMenuButton(label string, menu *fyne.Menu) *ContextMenuButton {
|
||||
return b
|
||||
}
|
||||
|
||||
func showDialogIfError(err error) {
|
||||
if err != nil {
|
||||
dialog.ShowError(err, MainWindow)
|
||||
}
|
||||
}
|
||||
|
||||
func newCheckInit(name string, changed func(bool), checked bool) *widget.Check {
|
||||
check := widget.NewCheck(name, changed)
|
||||
check.SetChecked(checked)
|
||||
|
||||
Reference in New Issue
Block a user