:3
This commit is contained in:
parent
51b6b7fc95
commit
ffa88f010c
2
rtmc.lua
2
rtmc.lua
|
@ -427,7 +427,7 @@ rawset(__BUNDLER_FILES, "updater", function ()
|
|||
fd.write(body);
|
||||
fd.close();
|
||||
local notif = "Computer #" .. tostring( os.getComputerID() ) .. " updating";
|
||||
notifier.notify("urgent", notif);
|
||||
notifier.notify("5", notif);
|
||||
log.debug("New update written to disk (" .. path .. ")");
|
||||
end
|
||||
return updater;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
local notifier = {};
|
||||
notifier.__index = notifier;
|
||||
|
||||
--- @param priority "max"|"urgent"|"high"|"default"|"low"|"min"
|
||||
--- @param priority "1"|"2"|"3"|"4"|"5"
|
||||
--- @param body string
|
||||
function notifier.notify(priority, body)
|
||||
local headers = {
|
||||
|
|
|
@ -116,7 +116,7 @@ function updater:update(path, url)
|
|||
fd.close();
|
||||
|
||||
local notif = "Computer #" .. tostring( os.getComputerID() ) .. " updating";
|
||||
notifier.notify("urgent", notif);
|
||||
notifier.notify("5", notif);
|
||||
log.debug("New update written to disk (" .. path .. ")");
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user