Skip to content

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

Merged
Frenzie merged 1 commit into
koreader:masterfrom
Frenzie:10368-start-with-default
Apr 30, 2023
Merged

[fix] Reintroduce "Start with" default to prevent nil string on startup#10369
Frenzie merged 1 commit into
koreader:masterfrom
Frenzie:10368-start-with-default

Conversation

@Frenzie

@Frenzie Frenzie commented Apr 29, 2023

Copy link
Copy Markdown
Member

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
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
Copy Markdown
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
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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