Fix custom colorscheme not loading (Close #93)
This commit is contained in:
parent
13b6294176
commit
c1d7aad179
|
@ -1,5 +1,5 @@
|
|||
// Example json file to put in `~/.config/gotop/{name}.json` and load with
|
||||
// `gotop -c {name}`. MUST DELETE THESE COMMENTS in order to load.
|
||||
// `gotop -c {name}`. MUST DELETE THESE COMMENTS AND RENAME FILE in order to load.
|
||||
{
|
||||
"Fg": 7,
|
||||
"Bg": -1,
|
||||
|
|
5
main.go
5
main.go
|
@ -125,10 +125,11 @@ func handleColorscheme(cs string) error {
|
|||
case "default-dark":
|
||||
colorscheme = colorschemes.DefaultDark
|
||||
default:
|
||||
if colorscheme, err := getCustomColorscheme(cs); err != nil {
|
||||
colorscheme = colorscheme
|
||||
custom, err := getCustomColorscheme(cs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
colorscheme = custom
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user