fix assetPath on windows #354

Merged
sarah merged 4 commits from winassetPath into master 2020-10-28 23:58:16 +00:00
4 changed files with 1 additions and 1 deletions
Showing only changes of commit 8b2a3aedfe - Show all commits

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -168,7 +168,7 @@ func mainUi(flagLocal bool, flagClientUI bool) {
if runtime.GOOS == "windows" {
dir = "/" + dir
}
// QML uses '/' refardless of platform (so we use path.Join here not filepath.Join)
// QML uses '/' regardless of platform (so we use path.Join here not filepath.Join)
gcd.SetAssetPath("file://" + path.Join(dir, "assets") + "/")
}
log.Infof("gcd.assetPath = '%v'\n", gcd.AssetPath())