Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将用户数据移动到程序所在目录之外 #59

Closed
pzhlkj6612 opened this issue Feb 14, 2020 · 0 comments · Fixed by #101
Closed

将用户数据移动到程序所在目录之外 #59

pzhlkj6612 opened this issue Feb 14, 2020 · 0 comments · Fixed by #101
Labels
enhancement New feature or request
Milestone

Comments

@pzhlkj6612
Copy link
Member

pzhlkj6612 commented Feb 14, 2020

现阶段, B4X 各版本均把用户数据存储在程序所在目录下,这不利于调试程序(切换 debug / release 、切换构建套件或 distclean 后)、升级版本时对于数据的保留。

我建议使用 QStandardPaths 进行改良。
其好处是,能保证程序所在目录的干净以及用户数据的独立性;
可能造成的问题是,如果不同版本间的数据不兼容,就需要在程序中做处理。

另外,如果已将用户数据移动到程序所在目录之外,就可以考虑提供“清除用户数据”和“导出用户数据”的功能。其中“导出用户数据”功能的实现效果可以为“使用类似资源管理器的程序定位到用户数据所在文件夹”(在 Windows 上为explorer /select,"path")。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants