mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 00:38:11 +08:00
Simplify the implementation of the message buffering (#2123)
* Simplify the implementation of the message buffering * Add assert to ensure list is empty
This commit is contained in:
@@ -16,7 +16,7 @@ impl Editor {
|
||||
}
|
||||
|
||||
pub fn handle_message<T: Into<Message>>(&mut self, message: T) -> Vec<FrontendMessage> {
|
||||
self.dispatcher.handle_message(message);
|
||||
self.dispatcher.handle_message(message, true);
|
||||
|
||||
std::mem::take(&mut self.dispatcher.responses)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user