Skip to content

Stop the update in progress with Esc - #821

Open
Leonhardmaster2 wants to merge 2 commits into
devfrom
feat/esc-stops-update
Open

Leonhardmaster2 wants to merge 2 commits into
devfrom
feat/esc-stops-update

Conversation

@Leonhardmaster2

Copy link
Copy Markdown
Contributor

Third small polish PR for the background compute: Esc stops the update that's running.

  • works anywhere in the main window, as long as the focused widget doesn't use Esc itself (renaming a graph tab still cancels with Esc)
  • it doesn't wait for the node being computed, that one just finishes in the background, nothing after it gets computed
  • what's left isn't thrown away, it's held and goes along with the next update, so your next edit brings the whole graph up to date again
  • progress bar gets cleared and the status bar says the update stopped

A real "stop" button can come with the graph editor UI rework, this just puts the worker side in place plus a shortcut.

Built and tested on Windows.

Leonhardmaster2 and others added 2 commits October 11, 2026 10:54
Esc in the main window, when no widget uses it (a rename field still
cancels with it), stops the background update without waiting for the
node being computed: that node ends in the background and nothing after it
is computed. What is left is held and taken along by the next update, so
the next edit brings the whole graph up to date again. The progress bar is
cleared and the status bar says the update stopped.
@otto-link

otto-link commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

One small fix needed: when the update is interrupted, the progress bar is not update.

Writing this makes me think that the graph model is then in an "intermediate" state, this should be signaled to the user (with a red label "graph need update" somewhere). It's notified but pretty easy to miss.

image

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.

2 participants