Skip to content

Commit b9e2102

Browse files
committed
Up
1 parent b7f34ca commit b9e2102

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

druid/editor_scripts/core/base64.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
66

77
function M.encode(data)
88
return ((data:gsub('.', function(x)
9-
local r,b='',x:byte()
10-
for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
9+
local r,byte_val='',x:byte()
10+
for i=8,1,-1 do r=r..(byte_val%2^i-byte_val%2^(i-1)>0 and '1' or '0') end
1111
return r;
1212
end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
1313
if (#x < 6) then return '' end

druid/editor_scripts/core/installer.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ function M.install_widget(item, install_folder)
5959
local zip_file_path = "." .. install_folder .. "/" .. filename
6060
local zip_file = io.open(zip_file_path, "wb")
6161
if not zip_file then
62-
return false, "Failed to open zip file: " .. zip_file_path
62+
print("Directory does not exist: " .. install_folder)
63+
print("Please create the directory manually and try again.")
64+
return false, "Directory does not exist: " .. install_folder
6365
end
6466

6567
zip_file:write(zip_data)

druid/editor_scripts/core/ui_components.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function M.create_widget_item(item, is_installed, on_install)
205205

206206
if is_installed then
207207
table.insert(widget_details_children, editor.ui.label({
208-
text = "Already installed",
208+
text = "Installed",
209209
color = editor.ui.COLOR.WARNING
210210
}))
211211
end

0 commit comments

Comments
 (0)