Skip to content

Commit b985174

Browse files
committed
fix issue with app store
1 parent 142a6c7 commit b985174

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

OSL Programs/apps/System/.Install_system.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
"path": "Origin/(A) System/User Applications",
313313
"name": "App Store.osl",
314314
"icon": "c #cfc45e w 10 square 0 0 5 5 c #111 w 8 square 0 0 5 5 dot 0 0 w 2 c #cfc45e square -3.5 3.5 2 2 square -3.5 -3.5 2 2 square 3.5 3.5 2 2 line 3.5 -2 3.5 -5 line 2 -3.5 5 -3.5 w 4 dot -3.5 -3.5 dot 3.5 3.5 dot -3.5 3.5",
315-
"version":"6.2"
315+
"version":"6.3"
316316
},
317317
{
318318
"url": "https://origin.mistium.com/OSL%20Programs/scripts/system/win_buttons.osl",

OSL Programs/apps/System/App Store.osl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def appCard(name) (
6868
change_y 20
6969
local txt_w = w / 10 - (img_w * 1)
7070
text name.trimText(txt_w - 17) + "\n" 10 : c#txtc
71-
text all_json[name].description
71+
text (all_json[name].description ?? "")
7272
.wrapText(txt_w - 2)
7373
.split("\n")
7474
.trim(1,2)
@@ -257,7 +257,7 @@ frame window.left window.top - 45 window.right window.bottom page_len (
257257
page_len += 100
258258
local apps = all_json.getValues()
259259
for i apps.len (
260-
if apps[i].title.contains(inputs.search) or apps[i].description.contains(inputs.search) (
260+
if apps[i].title.contains(inputs.search) or (apps[i].description ?? "").contains(inputs.search) (
261261
appCard(apps[i].title)
262262
change_y -100
263263
page_len += 100
@@ -384,7 +384,7 @@ frame window.left window.top - 45 window.right window.bottom page_len (
384384
change_x 20
385385
)
386386
)
387-
descr = cur.description.wrapText(frame.width / 10 - 3)
387+
descr = (cur.description ?? "").wrapText(frame.width / 10 - 3)
388388
lines = descr.split("\n").len
389389
set_x 0
390390
change_y lines * -11.5 - 30

0 commit comments

Comments
 (0)