Skip to content

Commit

Permalink
Merge pull request #93 from sachaos/disable-mouse
Browse files Browse the repository at this point in the history
Disable mouse
  • Loading branch information
sachaos committed Aug 24, 2023
2 parents e39d4ce + 7c379e5 commit 6209703
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions viddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ func (v *Viddy) arrange() {
}

// Run is entry point to run viddy.
//nolint: funlen,gocognit,cyclop
// nolint: funlen,gocognit,cyclop
func (v *Viddy) Run() error {
b := tview.NewTextView()
b.SetDynamicColors(true)
Expand Down Expand Up @@ -559,10 +559,10 @@ func (v *Viddy) Run() error {
}

if event.Rune() == 'q' {
if (v.showHelpView) { // if it's help mode, just go back
if v.showHelpView { // if it's help mode, just go back
v.showHelpView = false
v.arrange()
} else { // it's not help view, so just quit
} else { // it's not help view, so just quit
v.app.Stop()
os.Exit(0)
}
Expand Down Expand Up @@ -616,8 +616,6 @@ func (v *Viddy) Run() error {

v.UpdateStatusView()

app.EnableMouse(true)

v.app = app
v.arrange()

Expand Down

0 comments on commit 6209703

Please sign in to comment.