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

Better Personal Notes Autosave #3155

Merged

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Aug 27, 2023

Added a 2-second timer to autosave personal notes, based on frames idle after editing and ticked by OnGameFrameUpdate.

Build Artifacts

…le after editing and ticked by `OnGameFrameUpdate`.
Copy link
Contributor

@Archez Archez left a comment

Choose a reason for hiding this comment

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

So this keeps the original save on defocus, but also adds a debounce save after last keystroke if you don't defocus it. LGTM. As we tighten down our UI, I think it may be worth generalizing a debounce pattern based on game frame rate/or time values, that any UI Window can tie into.

@garrettjoecox garrettjoecox merged commit 644ab7f into HarbourMasters:develop Sep 1, 2023
8 checks passed
@Malkierian Malkierian deleted the better-notes-autosave branch September 1, 2023 18:43
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

3 participants