From 644e0d6440fe06959b92f414aab786bae61682ca Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Mon, 11 Mar 2019 11:10:46 +0100 Subject: [PATCH] [fix] Behave properly on start with shortcuts (#4772) Regression caused by #4764. Fixes #4768. --- reader.lua | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/reader.lua b/reader.lua index 5f92a8420..1e6b16bf3 100755 --- a/reader.lua +++ b/reader.lua @@ -206,18 +206,10 @@ if ARGV[argidx] and ARGV[argidx] ~= "" then end) elseif start_with == "folder_shortcuts" then local FileManagerShortcuts = require("apps/filemanager/filemanagershortcuts") - local fm_bookmark = FileManagerShortcuts:new{ - title = _("Folder shortcuts"), - show_parent = FileManager, - curr_path = home_dir, - goFolder = function(folder) - if folder ~= nil and lfs.attributes(folder, "mode") == "directory" then - FileManager.instance.file_chooser:changeToPath(folder) - end - end, - } UIManager:nextTick(function() - UIManager:show(fm_bookmark) + FileManagerShortcuts:new{ + ui = FileManager.instance, + }:onShowFolderShortcutsDialog() end) end end