mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-10 23:38:38 -05:00
Fix touchbar GUI script
This commit is contained in:
@@ -166,8 +166,17 @@ NSArray* focusIdentifiers;
|
||||
- (void)guiButtonAction:(id)sender {
|
||||
(void)sender;
|
||||
OsEng.scriptEngine().queueScript(
|
||||
"openspace.setPropertyValue('Global Properties.ImGUI.Main.Enabled', \
|
||||
not openspace.getPropertyValue('Global Properties.ImGUI.Main.Enabled'));",
|
||||
"local b = openspace.getPropertyValue(\
|
||||
'Global Properties.ImGUI.Main.Enabled'\
|
||||
);\
|
||||
openspace.setPropertyValueSingle(\
|
||||
'Global Properties.ImGUI.Main.Enabled',\
|
||||
not b\
|
||||
);\
|
||||
openspace.setPropertyValueSingle(\
|
||||
'Global Properties.ImGUI.Main.IsHidden',\
|
||||
b\
|
||||
);",
|
||||
openspace::scripting::ScriptEngine::RemoteScripting::No
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user