mirror of
https://gitee.com/konyshe/goodlink.git
synced 2025-09-26 20:51:22 +08:00
u
This commit is contained in:
@@ -26,7 +26,7 @@ func (c *LocalUI) Enable() {
|
||||
func (c *LocalUI) GetContainer() *fyne.Container {
|
||||
return container.NewVBox(
|
||||
container.New(layout.NewFormLayout(), widget.NewRichTextWithText("访问权限: "), c.radio),
|
||||
container.New(layout.NewFormLayout(), widget.NewRichTextWithText("监听端口: "), c.port_box),
|
||||
container.New(layout.NewFormLayout(), widget.NewRichTextWithText("访问端口: "), c.port_box),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@ func NewLocalUI(myWindow *fyne.Window) *LocalUI {
|
||||
default:
|
||||
c.radio.SetSelected("只允许本机")
|
||||
}
|
||||
(*myWindow).Resize((*myWindow).Content().MinSize())
|
||||
}
|
||||
c.radio.SetSelected("只允许本机")
|
||||
c.radio.Horizontal = true
|
||||
|
@@ -40,15 +40,16 @@ func NewRemoteUI(myWindow *fyne.Window) *RemoteUI {
|
||||
switch value {
|
||||
case "代理模式":
|
||||
c.remote_addr = c.remote_addr_box.Text
|
||||
c.remote_addr_box.SetText("不需要设置")
|
||||
c.remote_addr_box.SetPlaceHolder("不需要设置")
|
||||
c.remote_addr_box.SetText("")
|
||||
c.remote_addr_box.Disable()
|
||||
case "转发模式":
|
||||
c.remote_addr_box.Enable()
|
||||
c.remote_addr_box.SetPlaceHolder("例如: 127.0.0.1:3389")
|
||||
c.remote_addr_box.SetText(c.remote_addr)
|
||||
default:
|
||||
c.radio.SetSelected("代理模式")
|
||||
}
|
||||
(*myWindow).Resize((*myWindow).Content().MinSize())
|
||||
}
|
||||
c.radio.SetSelected("代理模式")
|
||||
c.radio.Horizontal = true
|
||||
|
Reference in New Issue
Block a user