package manager update + UI built-in extended char detection
This commit is contained in:
@@ -83,6 +83,7 @@ local Browser = UI.Page {
|
||||
{ key = 'totalSize', width = 6 },
|
||||
},
|
||||
},
|
||||
notification = UI.Notification { },
|
||||
associations = UI.SlideOut {
|
||||
backgroundColor = colors.cyan,
|
||||
menuBar = UI.MenuBar {
|
||||
@@ -215,7 +216,7 @@ function Browser.statusBar:draw()
|
||||
end
|
||||
|
||||
function Browser:setStatus(status, ...)
|
||||
self.statusBar:timedStatus(string.format(status, ...))
|
||||
self.notification:info(string.format(status, ...))
|
||||
end
|
||||
|
||||
function Browser:unmarkAll()
|
||||
|
||||
@@ -37,12 +37,6 @@ local page = UI.Page {
|
||||
x = 16, y = 3, ey = -5,
|
||||
marginRight = 0, marginLeft = 0,
|
||||
},
|
||||
load = UI.Button {
|
||||
x = 22, y = -3,
|
||||
text = 'Update packages',
|
||||
event = 'reload',
|
||||
help = 'Download the latest package list',
|
||||
},
|
||||
action = UI.SlideOut {
|
||||
backgroundColor = colors.cyan,
|
||||
titleBar = UI.TitleBar {
|
||||
@@ -144,10 +138,6 @@ function page:eventHandler(event)
|
||||
self.description:draw()
|
||||
self:updateSelection(event.selected)
|
||||
|
||||
elseif event.type == 'reload' then
|
||||
Packages:downloadList()
|
||||
self:loadPackages()
|
||||
|
||||
elseif event.type == 'action' then
|
||||
local selected = self.grid:getSelected()
|
||||
if selected then
|
||||
@@ -178,7 +168,11 @@ function page:eventHandler(event)
|
||||
UI.Page.eventHandler(self, event)
|
||||
end
|
||||
|
||||
page:loadPackages()
|
||||
|
||||
UI:setPage(page)
|
||||
page.statusBar:setStatus('Downloading...')
|
||||
page:sync()
|
||||
Packages:downloadList()
|
||||
page:loadPackages()
|
||||
page:sync()
|
||||
|
||||
UI:pullEvents()
|
||||
|
||||
@@ -36,7 +36,7 @@ local function progress(max)
|
||||
end
|
||||
|
||||
local function install(name, isUpdate)
|
||||
local manifest = Packages:getManifest(name) or error('Invalid package')
|
||||
local manifest = Packages:downloadManifest(name) or error('Invalid package')
|
||||
|
||||
if manifest.required then
|
||||
for _, v in pairs(manifest.required) do
|
||||
|
||||
Reference in New Issue
Block a user