Issue 1970: Implement Project Auto-Save#1999
Issue 1970: Implement Project Auto-Save#1999Assemberist wants to merge 6 commits intopencil2d:masterfrom
Conversation
There was a problem hiding this comment.
Hi Assemberist
Thanks for contributing to the project.
Based on the discussions between you and Chchwy in #1970, the logic seems fine to me, so I am not going to comment much on that.
This review is solely focused on the coding practices.
As of right now, the PR does not conform to our way of coding. This will need to be addressed before it can be approved on that account.
There was a problem hiding this comment.
Good job, we're getting there.
The latest changes looks better but you seem to have forgotten some things I mentioned the first time around.
btw. remember to re-request a review when you've made the appropriate changes, so it's clearer to the reviewer (me) that it can be looked at again 🙂
- Add AutosaverByTime class for timer-based auto-save to working folder - Add AUTO_SAVE_BY_TIME and AUTO_SAVE_BY_TIME_TIMER settings - Update preferences UI with time-based auto-save controls - Update both CMake and qmake build systems (fix: PR missed CMake) - Fix: pass parent to AutosaverByTime to prevent memory leak - Fix: use stateChanged signal for Qt <6.7 compatibility - Fix: keep recoverables.empty() early-return guard Agent-Logs-Url: https://github.com/pencil2d/pencil/sessions/40216fd4-b315-4426-b20c-9ed8a05ba705 Co-authored-by: chchwy <163800+chchwy@users.noreply.github.com>
|
Hi, it looks like i'm using newer development kit. It compiles project with my changes, but show this kind of warnings |
|
We currently use both Qt 5.15 & 6.5.3. I would recommend you install Qt 6.5.3 for pencil2d development.
|
Hi, |
Added 2 Settings to preferences->files 1. autosaving by time 2. autosave timer (min) Defects: Autosaving can break user action. Need implement check if user do some input before autosave.
Found assumed save function. Saving ocurred when user don't draw something (don't hold a mouse button or a modificator-keys i.e. SHIFT)
Apply project styles
Allman style is used public interfaces should be top.
To Null pointer Co-authored-by: Oliver Stevns <1045397+MrStevns@users.noreply.github.com>
add explicit
|
Yes, please. |
|
I will send you a PR to address issues |



Implementation of autoSave feature.
Clear indication when recovered project differs from saved fileIndication wasn't implemented. Below how the new class works