desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Maintain Selected Changes During Update & Restart

Open dsanders11 opened this issue 7 years ago • 3 comments

Please describe the problem you think should be solved Currently doing an update & restart will lose any selected changes and revert back to all changes being selected. This discourages me from doing timely updates (and leaves the banner coming up to annoy me) as I often use selected changes as an 'in-progress' tracker for my next commit, as commits aren't always in chronological order if I find a small change I can make an atomic commit, I'll go ahead and do that before I forget. As such I'll avoid doing an update during this time lest I lose these subset of changes. I could do a commit and then undo it after the restart, but this feels hackish, and if there's changes selected on multiple repositories is a pin.

I've limited the scope of the title to just update & restart rather than maintaining selected changes between closing and starting the program. That seems like a trickier thing to handle since the files may have changed while the program was closed, so the cached selected changes no longer apply. The update & restart seems like a small enough window where it's unlikely anything will change during that time.

dsanders11 avatar Oct 11 '18 10:10 dsanders11

Thanks for the report @dsanders11! Persisting the selected changes state across updates definitely makes sense to me (similar to https://github.com/desktop/desktop/issues/5315 in how we don't persist the zoom state on Windows after an update occurs). I'm going to label this as a bug.

steveward avatar Oct 11 '18 20:10 steveward

Chatted with @billygriffin about this and we concluded that we should change the label to enhancement since it aligns more with something we could improve on versus something that broke.

steveward avatar Oct 11 '18 21:10 steveward

Requested in https://github.com/desktop/desktop/issues/16871.

steveward avatar Jun 12 '23 13:06 steveward