Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Apr 29, 2023

Regression from #10198.

Fixes #10368.


This change is Reviewable

@Frenzie Frenzie added this to the 2023.05 milestone Apr 29, 2023
@Frenzie Frenzie added the bug label Apr 29, 2023
@Frenzie Frenzie requested a review from hius07 April 29, 2023 09:34
@@ -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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to say G_reader_settings:readSetting("start_with", "filemanager") is also an option now, but since we don't actually do anything write-related to the settings here, this is probably still clearer.

@Frenzie Frenzie merged commit 744f2d1 into koreader:master Apr 30, 2023
@Frenzie Frenzie deleted the 10368-start-with-default branch April 30, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Start with" menu initializes as nil
3 participants