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

Display time of last save in the unsaved changes confirmation editor dialog #80976

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 24, 2023

When multitasking, this makes it clearer whether closing a window with unsaved changes is potentially dangerous or not.

This is inspired by various games which display such a message when quitting, but I've seen various apps do it as well (I can't remember exactly which ones though).

Preview

Screenshot_20230825_201328

@Riteo
Copy link
Contributor

Riteo commented Aug 25, 2023

That sounds really useful!

Just one thing: I don't really like a lot the fact that now the popup becomes even wider. What if the time of last save would be put as a new line altogether?

editor/editor_node.cpp Outdated Show resolved Hide resolved
@Calinou Calinou force-pushed the editor-unsaved-changes-display-last-save-time branch from 3ff017d to 427abf3 Compare August 25, 2023 18:14
@Calinou
Copy link
Member Author

Calinou commented Aug 25, 2023

Just one thing: I don't really like a lot the fact that now the popup becomes even wider. What if the time of last save would be put as a new line altogether?

Done, see OP for updated screenshot 🙂

editor/editor_node.cpp Outdated Show resolved Hide resolved
@YuriSizov YuriSizov requested a review from a team August 30, 2023 13:43
…dialog

When multitasking, this makes it clearer whether closing a window with unsaved
changes is potentially dangerous or not.
@Calinou Calinou force-pushed the editor-unsaved-changes-display-last-save-time branch from 427abf3 to 3ba0316 Compare August 30, 2023 22:47
@akien-mga akien-mga modified the milestones: 4.x, 4.2 Aug 31, 2023
@akien-mga akien-mga merged commit 59de8f9 into godotengine:master Aug 31, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi
Copy link
Member

KoBeWi commented Sep 1, 2023

The displayed time is wrong, it should be tracked per scene.
Open editor, wait a few minutes. Open a scene, do random modification and close it. The prompt will say you last saved a few minutes ago, but you spent a few seconds with that scene. It's misleading.

@Calinou Calinou deleted the editor-unsaved-changes-display-last-save-time branch September 13, 2023 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants