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

Prevent chain files from being saved in install directory #2835

Merged
merged 9 commits into from
May 8, 2024

Conversation

joeyballentine
Copy link
Member

@joeyballentine joeyballentine commented May 6, 2024

We've had numerous reports of people thinking that it is a good idea to save their chains in chaiNNer's install dir, only to lose all their chain files after updating (for example, #1756).

This PR should prevent this in the future. Now, if someone tries to save to this directory, it will error and tell them to pick a different one. Also, it checks on startup if any chain files are stored in this directory (i.e. if someone moved them there manually) and gives a warning before starting up.

One concern is that this still applies in portable mode. It's most likely fine for people to put chain files in their portable folder, so should we not do these things for portable installs?

src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/gui/main-window.ts Outdated Show resolved Hide resolved
src/main/util.ts Outdated Show resolved Hide resolved
Copy link
Member

@RunDevelopment RunDevelopment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Joey!

@joeyballentine joeyballentine merged commit 3f1fbdf into main May 8, 2024
4 checks passed
@joeyballentine joeyballentine deleted the chn-warning branch May 8, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants