Skip to content

Commit

Permalink
增加用户配置目录 ~/.super-run
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket049 committed Feb 28, 2021
1 parent e4a8e87 commit 71737a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mainwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (a *MyApp) getSysJsons() []string {
func (a *MyApp) getUserJsons() []string {
cfgDir, err := os.Open(filepath.Join(getUserPath(), ".super-run"))
if err != nil {
panic(err)
return []string{}
}
defer cfgDir.Close()
names, err := cfgDir.Readdirnames(0)
Expand Down

0 comments on commit 71737a8

Please sign in to comment.