Skip to content

Commit

Permalink
Disable the initial tutorial in Termux, to make things easier
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Sep 12, 2024
1 parent 9e9403d commit 2092fe5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions v2/plat_android.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build android

package main

const isAndroid = true
5 changes: 5 additions & 0 deletions v2/plat_nonandroid.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build !android

package main

const isAndroid = false
2 changes: 1 addition & 1 deletion v2/quickhelp.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func EnableQuickHelpScreen(status *StatusBar) bool {

// QuickHelpScreenIsDisabled checks if the quick help config file exists
func QuickHelpScreenIsDisabled() bool {
return files.Exists(quickHelpToggleFilename)
return isAndroid || files.Exists(quickHelpToggleFilename)
}

// DrawQuickHelp draws the quick help + some help for new users
Expand Down

0 comments on commit 2092fe5

Please sign in to comment.