This repository has been archived by the owner on Dec 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Fix expression changing during editing #1743
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
farmaazon
added
Difficulty: Intermediate
Some prior knowledge required
Priority: High
Should be scheduled as soon as possible
Type: Bug
A bug in Enso IDE
Category: Controllers
The Application layer not bound to visual part
Category: GUI
The Graphical User Interface
labels
Jul 30, 2021
mwu-tow
approved these changes
Jul 30, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -30,7 +30,7 @@ impl Expression { | |||
} | |||
} | |||
|
|||
impl Debug for Expression { | |||
impl Display for Expression { | |||
fn fmt(&self, f:&mut fmt::Formatter<'_>) -> fmt::Result { | |||
write!(f,"Expression({})",self.code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just print the code without {}
@@ -863,12 +863,14 @@ impl Model { | |||
}; | |||
let expression_changed = | |||
!self.expression_views.borrow().get(&id).contains(&&code_and_trees); | |||
if expression_changed { | |||
let node_is_edited = self.view.graph().frp.node_being_edited.value().contains(&id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node_is_edited
-> node_is_being_edited
MichaelMauderer
approved these changes
Jul 30, 2021
wdanilo
approved these changes
Jul 30, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Category: Controllers
The Application layer not bound to visual part
Category: GUI
The Graphical User Interface
Difficulty: Intermediate
Some prior knowledge required
Priority: High
Should be scheduled as soon as possible
Type: Bug
A bug in Enso IDE
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Important Notes
Checklist
Please include the following checklist in your PR:
CHANGELOG.md
was updated with the changes introduced in this PR.All code has been manually tested in the "debug/interface" scene.