logic: correctly undoing graph interactions by replaying actions since last active token change
This change introdoces a classification of commands by order in the undo stack. Undoing the last action will resend the message of the last active token change and all messages changing the ui after that.
This commit is contained in:
@@ -22,7 +22,6 @@ public:
|
||||
, connected(false)
|
||||
, aggregated(false)
|
||||
, expanded(false)
|
||||
, autoExpanded(false)
|
||||
, accessType(TokenComponentAccess::ACCESS_NONE)
|
||||
, invisibleSubNodeCount(0)
|
||||
{
|
||||
@@ -50,7 +49,7 @@ public:
|
||||
|
||||
bool isExpanded() const
|
||||
{
|
||||
return expanded || autoExpanded;
|
||||
return expanded;
|
||||
}
|
||||
|
||||
bool hasVisibleSubNode() const
|
||||
@@ -119,7 +118,6 @@ public:
|
||||
bool connected;
|
||||
bool aggregated;
|
||||
bool expanded;
|
||||
bool autoExpanded;
|
||||
|
||||
// AccessNode
|
||||
TokenComponentAccess::AccessType accessType;
|
||||
|
||||
Reference in New Issue
Block a user