[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

this one slipped through the cracks when we removed image_file back in #11549
This commit is contained in:
David
2025-01-21 08:19:06 +00:00
committed by GitHub
parent 69d79cdc0e
commit 9c5ea3119d

View File

@@ -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,
},