Fix the background image selector on MacOS and Linux (with pfd)

Forgot that the backends need changes too, after I split out image file selection from the other types.
This commit is contained in:
Henrik Rydgård committed 2025-05-27 23:04:18 +02:00
1 parent 4d81153479
commit 4edbc14025
4 files changed
+59 -3

No files matched your search

+1
View File
@@ -1517,6 +1517,7 @@ UI::EventReturn GameSettingsScreen::OnChangeBackground(UI::EventParams &e) {
const Path bgJpg = GetSysDirectory(DIRECTORY_SYSTEM) / "background.jpg";
if (File::Exists(bgPng) || File::Exists(bgJpg)) {
INFO_LOG(Log::UI, "Clearing background image.");
// The button is in clear mode.
File::Delete(bgPng);
File::Delete(bgJpg);