mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-21 18:38:20 -05:00
Change touchbar to use identifier instead of name
This commit is contained in:
@@ -264,7 +264,7 @@ void showTouchbar() {
|
||||
nodes.begin(),
|
||||
nodes.end(),
|
||||
[](SceneGraphNode* lhs, SceneGraphNode* rhs) {
|
||||
return lhs->name() < rhs->name();
|
||||
return lhs->guiName() < rhs->guiName();
|
||||
}
|
||||
);
|
||||
|
||||
@@ -273,7 +273,7 @@ void showTouchbar() {
|
||||
const std::vector<std::string>& tags = n->tags();
|
||||
auto it = std::find(tags.begin(), tags.end(), "GUI.Interesting");
|
||||
if (it != tags.end()) {
|
||||
[ids addObject: [NSString stringWithCString:n->name().c_str()
|
||||
[ids addObject: [NSString stringWithCString:n->identifier().c_str()
|
||||
encoding:[NSString defaultCStringEncoding]]];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user