这是indexloc提供的服务,不要输入任何密码
Skip to content

Write tool properties to disk when calling leavingThisTool() or ~ToolManager() #1904

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

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

khoidauminh
Copy link
Contributor

Tool properties are written to disk immediately when changed. If you try to slide a scalar value with a high temporal resolution device like a tablet or a high end mouse, the flooding events will cause the program to freeze/lag as it struggles to write every value to the QSettings object.

Previously #1853 was merged to mitigate this problem with quick sizing, but if you change the properties on the tool options panel, the lag is still there.

This PR makes the change so that the program will wait until you switch to another tool, or close the program, to write everything onto the disk.

@khoidauminh
Copy link
Contributor Author

I think I should go ahead and remove the changes in #1853 as well since it's now redundant

@chchwy chchwy force-pushed the save-tool-properties-on-exit branch 2 times, most recently from 1a7a757 to 90f75d3 Compare February 19, 2025 07:41
@chchwy chchwy force-pushed the save-tool-properties-on-exit branch from 90f75d3 to 125486a Compare February 24, 2025 08:33
@chchwy chchwy merged commit a87d640 into pencil2d:master Feb 27, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Pull Request Priority Feb 27, 2025
@khoidauminh
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants