Moved "Show windows apps" to settings

Added "Hide Portable from app names"
This commit is contained in:
Belac Darkstorm
2017-04-14 01:56:36 -05:00
parent ea91d3cd80
commit 9e9bb82025
9 changed files with 58 additions and 34 deletions
+10 -7
View File
@@ -14,13 +14,14 @@ const (
)
var (
master map[string][]app
linmaster map[string][]app
cats []string
lin []string
wine bool
comEnbld bool
wineAvail bool
master map[string][]app
linmaster map[string][]app
cats []string
lin []string
wine bool
comEnbld bool
wineAvail bool
portableHide bool
)
func main() {
@@ -61,6 +62,7 @@ func savePrefs() {
}
enc := gob.NewEncoder(fil)
enc.Encode(wine)
enc.Encode(portableHide)
}
func loadPrefs() {
@@ -70,6 +72,7 @@ func loadPrefs() {
}
dec := gob.NewDecoder(fil)
dec.Decode(&wine)
dec.Decode(&portableHide)
}
func contains(arr []string, str string) bool {