Commit 7180e633 authored by Black Hat's avatar Black Hat

Make Qt find out cache dir.

parent c659e49e
......@@ -28,7 +28,8 @@ func (ip *ImageProvider) Init() {
ip.ConnectSetServerAddr(ip.setServerAddr)
pro := quick.NewQQuickImageProvider(0, qml.QQmlImageProviderBase__ForceAsynchronousImageLoading)
avatarDir := os.TempDir() + "/matrique/avatar/"
avatarDir := core.QStandardPaths_WritableLocation(core.QStandardPaths__CacheLocation) + "/avatar/"
//avatarDir := os.TempDir() + "/matrique/avatar/"
if _, err := os.Stat(avatarDir); os.IsNotExist(err) {
os.MkdirAll(avatarDir, 0755)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment