FileManager: Hold the "+" button to refresh content (#7559)

This commit is contained in:
hius07 authored and GitHub committed 2021-04-18 00:58:52 +02:00
1 parent 475f46c427
commit 7b169dfa5e
1 file changed
+7
@@ -129,6 +129,13 @@ function FileManager:setupLayout()
padding_right = Size.padding.large,
padding_bottom = 0,
callback = function() self:onShowPlusMenu() end,
hold_callback = function()
self:onRefresh()
UIManager:show(InfoMessage:new{
text = _("Content refreshed."),
timeout = 2,
})
end,
}
self.path_text = TextWidget:new{