mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[screenshoter] Fix ‘set as wallpaper’ setting not saved properly (#13108)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
this one slipped through the cracks when we removed image_file back in #11549
This commit is contained in:
@@ -99,8 +99,8 @@ function Screenshoter:onScreenshot(screenshot_name, caller_callback)
|
||||
{
|
||||
text = _("Set as wallpaper"),
|
||||
callback = function()
|
||||
G_reader_settings:saveSetting("screensaver_type", "image_file")
|
||||
G_reader_settings:saveSetting("screensaver_image", screenshot_name)
|
||||
G_reader_settings:saveSetting("screensaver_type", "document_cover")
|
||||
G_reader_settings:saveSetting("screensaver_document_cover", screenshot_name)
|
||||
dialog:onClose()
|
||||
end,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user