Skip to content

Commit ac2ac77

Browse files
authored
Merge pull request #268 from antiviiris/patch-1
Remove deprecated type methods & add display to permissions in settings
2 parents 078d340 + d5277c7 commit ac2ac77

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

OSL Programs/apps/System/.Install_system.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"path": "Origin/(A) System/User Applications",
236236
"name": "Settings.osl",
237237
"icon": "c #6fa6eb w 10 square 0 0 5 5 c #111 w 8 square 0 0 5 5 dot 0 0 c #777 w 4 line 0 6 0 -6 line -5 3 5 -3 line 5 3 -5 -3 w 11.5 dot 0 0 w 7 c #111 dot 0 0 w 5 c #6fa6eb dot 0 0",
238-
"version":"17.1"
238+
"version":"17.2"
239239
},
240240
{
241241
"url": "https://origin.mistium.com/OSL%20Programs/apps/System/Calculator.osl",

OSL Programs/apps/System/Settings.osl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ permission "request" "terminal"
88
permission "request" "file admin"
99
permission "request" "account"
1010
permission "request" "kernel"
11+
permission "request" "display"
1112

1213
def "setting_toggle" "txt, w, state, callback" (
1314
local x = x_position
@@ -277,7 +278,7 @@ def "system" (
277278
terminal "system sound set volume " ++ (slider_volume * 100)
278279
c txtc
279280
loc 2 2 10 -160 + frame.scroll
280-
if media.istype("object") (
281+
if typeof(media) == "object" (
281282
text "Media Devices" 10
282283
for i keys.len (
283284
y = i + 2.5 * -60 + frame.scroll
@@ -887,7 +888,7 @@ def "account" (
887888
if subcategory == "backups" (
888889
page_len = 0
889890
each this.backup user["sys.backups"] (
890-
if backup.isType("object") (
891+
if typeof(backup) == "object" (
891892
page_len += 50
892893
setting_do backup.name + "(" ++ round(backup.size / 1000) ++ "kb)" null w def(id) -> (
893894
if "Restore this backup?".confirm() (

0 commit comments

Comments
 (0)