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

Config file potentially repairs incorrectly #61

Open
GeorgeCiesinski opened this issue Mar 25, 2020 · 0 comments
Open

Config file potentially repairs incorrectly #61

GeorgeCiesinski opened this issue Mar 25, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@GeorgeCiesinski
Copy link
Owner

Description
The config file is capable of repairing sections including the [HISTORY] section. If you delete the whole shortcutsused line and run the program again, it repairs the section, but it replaces the shortcutsused with the shortcutchars value.

To Reproduce
Steps to reproduce the behavior:

  1. Delete the config file
  2. Run the program to generate a new config
  3. Use a shortcut or two. Note the numbers in history
  4. Stop the program and delete the shortcutsused option
  5. Run the program again to repair the config
  6. Note the incorrect values

Expected behavior
If any data is lost in the HISTORY section, the entire section should be rebuilt with 0 as the value for each option.

@GeorgeCiesinski GeorgeCiesinski added the bug Something isn't working label Mar 25, 2020
@GeorgeCiesinski GeorgeCiesinski added this to the 1.3.2 Bugfix milestone Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant