Skip to content

Commit f56ab8b

Browse files
authored
studio fix
1 parent 17c94a6 commit f56ab8b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

OSL Programs/apps/System/.Install_system.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
"path": "Origin/(A) System/User Applications",
257257
"name": "Studio.osl",
258258
"icon": "c #8e2d2d w 10 square 0 0 5 5 c #0a0303 w 8 square 0 0 5 5 dot 0 0 c #8e2d2d w 1.5 line 2 3 5 0 cont 2 -3 line -2 3 -5 0 cont -2 -3",
259-
"version":"4.5"
259+
"version":"4.6"
260260
},
261261
{
262262
"url": "https://origin.mistium.com/OSL%20Programs/apps/System/Contacts.osl",

OSL Programs/apps/System/Studio.osl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ def joinEditSession(id) (
4242
inputs.share = open(sharing_tab).split("\n")
4343
share_name = open(sharing_tab, ["name", "type"])
4444
share_type = share_name[2]
45-
current_ohf = getOHF(share_type)
46-
if typeof(current_ohf) == "object" (
47-
current_ohf = compileOHF(current_ohf)
48-
) else (
49-
current_ohf = null
50-
)
45+
current_ohf = compileOHF(getOHF(share_type))
5146
share_name = share_name.join("")
5247
add_tab "^ Live Share"
5348
)
@@ -461,9 +456,10 @@ if current_studio_page == "Home" (
461456
square w2 30 15 : c#global_accent
462457
square w2 30 10 : c#c_seco
463458
)
464-
if onclick (
459+
if onclick or "enter".onKeyDown() (
465460
file "download" input_name
466461
add_tab data
462+
current_ohf = compileOHF(getOHF(input_name.split(".").last()))
467463
)
468464
change_x w2 / -2 + 15
469465
) else (

0 commit comments

Comments
 (0)