mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-07 02:42:50 +08:00
fix basic config layout
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package diange
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/core/adapter"
|
||||
"AynaLivePlayer/core/model"
|
||||
"AynaLivePlayer/gui"
|
||||
"AynaLivePlayer/gui/component"
|
||||
@@ -30,11 +29,9 @@ type Diange struct {
|
||||
SourceCMD []string
|
||||
cooldowns map[string]int
|
||||
panel fyne.CanvasObject
|
||||
contro adapter.IControlBridge
|
||||
log adapter.ILogger
|
||||
}
|
||||
|
||||
func NewDiange(contr adapter.IControlBridge) *Diange {
|
||||
func NewDiange() *Diange {
|
||||
return &Diange{
|
||||
UserPermission: true,
|
||||
PrivilegePermission: true,
|
||||
@@ -44,8 +41,6 @@ func NewDiange(contr adapter.IControlBridge) *Diange {
|
||||
CustomCMD: "add",
|
||||
SourceCMD: make([]string, 0),
|
||||
cooldowns: make(map[string]int),
|
||||
contro: contr,
|
||||
log: contr.Logger().WithModule(MODULE_CMD_DIANGE),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ type Qiege struct {
|
||||
AdminPermission bool
|
||||
CustomCMD string
|
||||
panel fyne.CanvasObject
|
||||
ctr adapter.IControlBridge
|
||||
}
|
||||
|
||||
func NewQiege(ctr adapter.IControlBridge) *Qiege {
|
||||
@@ -29,7 +28,6 @@ func NewQiege(ctr adapter.IControlBridge) *Qiege {
|
||||
PrivilegePermission: true,
|
||||
AdminPermission: true,
|
||||
CustomCMD: "skip",
|
||||
ctr: ctr,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user