fixed crossover path default overwrite
This commit is contained in:
@@ -98,8 +98,10 @@ func UpdatePathLabels(crossoverPathLabel, turtlewowPathLabel *widget.RichText) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CheckDefaultCrossOverPath() {
|
func CheckDefaultCrossOverPath() {
|
||||||
if info, err := os.Stat(DefaultCrossOverPath); err == nil && info.IsDir() {
|
if CrossoverPath == "" {
|
||||||
CrossoverPath = DefaultCrossOverPath
|
if info, err := os.Stat(DefaultCrossOverPath); err == nil && info.IsDir() {
|
||||||
log.Println("Pre-set CrossOver to default:", DefaultCrossOverPath)
|
CrossoverPath = DefaultCrossOverPath
|
||||||
|
log.Println("Pre-set CrossOver to default:", DefaultCrossOverPath)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user