mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 07:18:04 +08:00
Improve message ordering to use a stack (#707)
* Improve message ordering * Resovle bug with widgets * Less code duplication for UpdateOpenDocumentsList * Fix layer panel
This commit is contained in:
committed by
Keavon Chambers
parent
d12d805e2f
commit
b2eae904d8
@@ -113,7 +113,7 @@ impl PathOutline {
|
||||
|
||||
/// Clears overlays for the seleted paths and removes references
|
||||
pub fn clear_selected(&mut self, responses: &mut VecDeque<Message>) {
|
||||
if let Some(path) = self.selected_overlay_paths.pop() {
|
||||
while let Some(path) = self.selected_overlay_paths.pop() {
|
||||
let operation = Operation::DeleteLayer { path };
|
||||
responses.push_back(DocumentMessage::Overlays(operation.into()).into());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user