Skip to content

Commit 2e9e832

Browse files
authored
fixed recent files in studio
1 parent ffc301e commit 2e9e832

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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.4"
259+
"version":"4.5"
260260
},
261261
{
262262
"url": "https://origin.mistium.com/OSL%20Programs/apps/System/Contacts.osl",

OSL Programs/apps/System/Studio.osl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def sidebarButtons(file_uuid, input_name) (
312312
if onclick (
313313
path = path[1] ++ "/" ++ path[2] ++ path[3]
314314
file "set" 4 inputs[input_name].join("\n")
315+
recents = "recent_files.json".saveGet()
316+
save "recent_files.json" "set" recents.delete(file_uuid).prepend(file_uuid).trim(1,8)
315317
)
316318

317319
change_y -50
@@ -652,4 +654,4 @@ if current_tab.startsWith("^") (
652654

653655
loc 2 2 23 -23
654656
sidebarButtons(current_tab, current_tab)
655-
)
657+
)

0 commit comments

Comments
 (0)