mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 10:58:04 +08:00
committed by
Keavon Chambers
parent
a1b91c75c7
commit
bac34e3e64
@@ -91,7 +91,7 @@ pub struct PropertiesPanelMessageHandler {
|
||||
|
||||
impl PropertiesPanelMessageHandler {
|
||||
fn matches_selected(&self, path: &[LayerId]) -> bool {
|
||||
let last_active_path = self.active_path.as_ref().map(|v| v.last().copied()).flatten();
|
||||
let last_active_path = self.active_path.as_ref().and_then(|v| v.last().copied());
|
||||
let last_modified = path.last().copied();
|
||||
matches!((last_active_path, last_modified), (Some(active_last), Some(modified_last)) if active_last == modified_last)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user