diff options
| -rw-r--r-- | go/main.go | 36 | 
1 files changed, 18 insertions, 18 deletions
| @@ -25,13 +25,13 @@ const (  )  type Limox struct { -	JidEditor       widget.Editor -	PwdEditor       widget.Editor -	MainButton      widget.Clickable -	State           LimoxState -	Window          *app.Window -	Operations      op.Ops -	Theme           *material.Theme +	JidEditor  widget.Editor +	PwdEditor  widget.Editor +	MainButton widget.Clickable +	State      LimoxState +	Window     *app.Window +	Operations op.Ops +	Theme      *material.Theme  }  func main() { @@ -54,9 +54,9 @@ func NewLimox() Limox {  			app.Title("LimoX"),  			app.Size(unit.Dp(400), unit.Dp(600)),  		), -		Operations:      op.Ops{}, -		Theme:           material.NewTheme(gofont.Collection()), -		State:           Disconnected, +		Operations: op.Ops{}, +		Theme:      material.NewTheme(gofont.Collection()), +		State:      Disconnected,  	}  } @@ -136,14 +136,14 @@ func (l *Limox) draw(e system.FrameEvent) {  func (l *Limox) buttonLabel() string {  	var label string  	switch l.State { -		case Disconnected: -			label = "Connect" -		case Connecting: -			label = "Abort" -		case Connected: -			label = "Disconnect" -		default: -			log.Fatalf("Unknown Limox state '%d'\n", l.State) +	case Disconnected: +		label = "Connect" +	case Connecting: +		label = "Abort" +	case Connected: +		label = "Disconnect" +	default: +		log.Fatalf("Unknown Limox state '%d'\n", l.State)  	}  	return label  } | 
