Fix text selection panic caused by clipboard
This commit is contained in:
parent
25bc7dfff3
commit
f3854524bc
2
ui/ui.go
2
ui/ui.go
@ -20,6 +20,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"maunium.net/go/mauview"
|
"maunium.net/go/mauview"
|
||||||
|
"github.com/zyedidia/clipboard"
|
||||||
"maunium.net/go/tcell"
|
"maunium.net/go/tcell"
|
||||||
|
|
||||||
"maunium.net/go/gomuks/interface"
|
"maunium.net/go/gomuks/interface"
|
||||||
@ -62,6 +63,7 @@ func NewGomuksUI(gmx ifc.Gomuks) ifc.GomuksUI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ui *GomuksUI) Init() {
|
func (ui *GomuksUI) Init() {
|
||||||
|
clipboard.Initialize()
|
||||||
ui.views = map[View]mauview.Component{
|
ui.views = map[View]mauview.Component{
|
||||||
ViewLogin: ui.NewLoginView(),
|
ViewLogin: ui.NewLoginView(),
|
||||||
ViewMain: ui.NewMainView(),
|
ViewMain: ui.NewMainView(),
|
||||||
|
Loading…
Reference in New Issue
Block a user