Skip to content

[screenshoter] remove 'set as wallpaper' from devices with special offers#13110

Merged
Frenzie merged 3 commits into
koreader:masterfrom
Commodore64user:kindle-screenshot
Jan 31, 2025
Merged

[screenshoter] remove 'set as wallpaper' from devices with special offers#13110
Frenzie merged 3 commits into
koreader:masterfrom
Commodore64user:kindle-screenshot

Conversation

@Commodore64user

@Commodore64user Commodore64user commented Jan 21, 2025

Copy link
Copy Markdown
Member

what's new

This only just crossed my mind, we don't show anything on sleep screen if a device has special offers (#13006) yet, this is still out there.


This change is Reviewable

Comment thread frontend/ui/widget/screenshoter.lua Outdated
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

@Frenzie Frenzie left a comment

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.

Pinging @NiLuJe or whoever knows the most about special offers

@Frenzie Frenzie added this to the 2025.01 milestone Jan 21, 2025
@Frenzie Frenzie added the Kindle label Jan 21, 2025
Comment thread frontend/ui/widget/screenshoter.lua Outdated
Comment on lines +99 to +106
{
Device:supportsScreensaver() and {
text = _("Set as wallpaper"),
callback = function()
G_reader_settings:saveSetting("screensaver_type", "document_cover")
G_reader_settings:saveSetting("screensaver_document_cover", screenshot_name)
dialog:onClose()
end,
},
} or nil,

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.

The or nil trick works because this is the last element, so I wouldn't mind a big fat warning about that in case future readers miss it ;).

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.

Or, better yet, refactor this to use inserts like we do pretty much everywhere else for this sort of stuff.

@NiLuJe NiLuJe Jan 21, 2025

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.

Or, better-er yet, does hidden = true actually do what it says on the tin for Buttons?

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.

Will do

@Commodore64user Commodore64user Jan 22, 2025

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.

had to go with better, better-er is not supported with buttondialog

edit: or at least how it is implemented, either way hidden does not work there

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.

NiLuJe, into your hands i commend my spirit.
NiLuJe, into your hands,
Why have you forsaken me?
In your eyes forsaken me,
In your thoughts forsaken me,
In your heart forsaken me.

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.

I walk a lonely road
The only one that I have ever known
Don't know where it goes
But it's home to me and I walk alone

PS: I am running out of songs @NiLuJe

@Frenzie Frenzie merged commit 03500bc into koreader:master Jan 31, 2025
@Commodore64user Commodore64user deleted the kindle-screenshot branch January 31, 2025 11:34
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.

3 participants