summaryrefslogtreecommitdiffstats
path: root/pkg/gui/global_handlers.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-11 21:52:04 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-11 22:07:29 +1000
commit84b0c3df4fd8373dcc248a907ddb3c539a88f0c7 (patch)
tree180d6b62944697fa61336092fc586cab55e69dfa /pkg/gui/global_handlers.go
parent764bd556f3500bf51556e8f475d5efdda7fd9c46 (diff)
ask question button
Diffstat (limited to 'pkg/gui/global_handlers.go')
-rw-r--r--pkg/gui/global_handlers.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/pkg/gui/global_handlers.go b/pkg/gui/global_handlers.go
index eee09a546..6e098fb6c 100644
--- a/pkg/gui/global_handlers.go
+++ b/pkg/gui/global_handlers.go
@@ -187,32 +187,6 @@ func (gui *Gui) handleMouseDownSecondary() error {
return nil
}
-func (gui *Gui) handleInfoClick() error {
- if !gui.g.Mouse {
- return nil
- }
-
- view := gui.Views.Information
-
- cx, _ := view.Cursor()
- width, _ := view.Size()
-
- for _, mode := range gui.modeStatuses() {
- if mode.isActive() {
- if width-cx > len(gui.Tr.ResetInParentheses) {
- return nil
- }
- return mode.reset()
- }
- }
-
- // if we're not in an active mode we show the donate button
- if cx <= len(gui.Tr.Donate)+len(INFO_SECTION_PADDING) {
- return gui.OSCommand.OpenLink("https://github.com/sponsors/jesseduffield")
- }
- return nil
-}
-
func (gui *Gui) fetch(canPromptForCredentials bool, span string) (err error) {
gui.Mutexes.FetchMutex.Lock()
defer gui.Mutexes.FetchMutex.Unlock()