[fix] Reintroduce "Start with" default to prevent nil string on startup (#10369)

Regression from #10198.

Fixes #10368.
This commit is contained in:
Frans de Jonge
2023-04-30 13:01:55 +02:00
committed by GitHub
parent 0db042fd0c
commit 744f2d185f

View File

@@ -889,7 +889,7 @@ function FileManagerMenu:getStartWithMenuTable()
end
return {
text_func = function()
local start_with = G_reader_settings:readSetting("start_with")
local start_with = G_reader_settings:readSetting("start_with") or "filemanager"
for i, v in ipairs(start_withs) do
if v[2] == start_with then
return T(_("Start with: %1"), v[1])