Skip to content

Profiles: make sure to close menu/quickmenu before executing action#12299

Merged
Frenzie merged 1 commit into
koreader:masterfrom
Frenzie:12293-close-profile-menu
Aug 6, 2024
Merged

Profiles: make sure to close menu/quickmenu before executing action#12299
Frenzie merged 1 commit into
koreader:masterfrom
Frenzie:12293-close-profile-menu

Conversation

@Frenzie

@Frenzie Frenzie commented Aug 5, 2024

Copy link
Copy Markdown
Member

Mainly a difference without distinction, but in some edge cases like screenshots it keeps the menu on the screen. See #12293 (comment).

The "Show as QuickMenu" is really just for balance; it makes little to no difference.


This change is Reviewable

Mainly a difference without distinction, but in some edge cases like screenshots it keeps the menu on the screen.
See <koreader#12293 (comment)>.

The "Show as QuickMenu" is really just for balance; it makes little to no difference.
@Frenzie Frenzie added this to the 2024.08 milestone Aug 5, 2024
Comment thread frontend/dispatcher.lua
UIManager:close(quickmenu)
Dispatcher:execute(settings, { qm_show = false })
UIManager:nextTick(function()
Dispatcher:execute(settings, { qm_show = false })

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Actually why is this Dispatcher and not self, anyway?

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.

Maybe @yparitcher emphasizes that there are no instances but one and only mighty Dispatcher?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Haha, maybe. Anyway, I don't mind.

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.

that was funny.

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.

IIRC when i created dispatcher it was to show that it is a singleton, (also that was my first big contribution to koreader, so was still figuring out lua) this style is throughout the whole dispatcher, I didn't use self much

@Frenzie Frenzie merged commit 880b7c5 into koreader:master Aug 6, 2024
@Frenzie Frenzie deleted the 12293-close-profile-menu branch August 6, 2024 13:15
Frenzie added a commit to Frenzie/koreader that referenced this pull request Sep 9, 2024
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
…oreader#12299)

Mainly a difference without distinction, but in some edge cases like screenshots it keeps the menu on the screen.
See <koreader#12293 (comment)>.

The "Show as QuickMenu" is really just for balance; it makes little to no difference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants