Open sphh opened 2 years ago
What exactly do you mean by recalculating the project? (Serialization? Rendering? Flow updates?)
I mean: Flow updates – The update_event()
of all nodes are called.
The update events must have a unique source, which is probably the input of a node. Some dtype
widgets (the ones with a QLineEdit
) cause updates on editingFinished
, which is emitted also when losing focus. Only this is what I can think of right now, in which case, yes, this is intended but isn't particular to focusing on another application, but originates from editing an input and then leaving it.
Yes, I use dtype
widgets!
And if we used the textEdited
signal, update_event()
would be called on every edit action and with returnPressed
the update_event()
is only called, if the return key is pressed, but not when the user moves the cursor with the mouse or the tab key; right?
Any chance to call update_event()
only if the widget looses focus and the contents has changed?
And if we used the
textEdited
signal,update_event()
would be called on every edit action and withreturnPressed
theupdate_event()
is only called, if the return key is pressed, but not when the user moves the cursor with the mouse or the tab key; right?
yep
Any chance to call
update_event()
only if the widget looses focus and the contents has changed?
Should be possible, yes. I'll try. Pressing return should IMO still be possible for forcing updates, but I can make the update on unfocus conditional, I think.
Pressing return should IMO still be possible for forcing updates, but I can make the update on unfocus conditional, I think.
Sounds like a good plan!!
I just noticed, that Ryven recalculates the project, whenever the window looses the focus:
The project is even recalculated, when pressing the window close button.
Is this an intended behaviour or a side-effect of me having activated the window focus mode
sloppy
on Linux?