From 040ede9a0482ed0d2a55e047f536e95ebee77855 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Tue, 10 Mar 2026 12:45:04 +0200 Subject: [PATCH 1/2] Remove custom background url --- .../src/ts/commandline/lists/custom-background.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/commandline/lists/custom-background.ts b/frontend/src/ts/commandline/lists/custom-background.ts index 3033920f415e..972957a5b39c 100644 --- a/frontend/src/ts/commandline/lists/custom-background.ts +++ b/frontend/src/ts/commandline/lists/custom-background.ts @@ -4,6 +4,7 @@ import FileStorage from "../../utils/file-storage"; import { applyCustomBackground } from "../../controllers/theme-controller"; import { updateUI } from "../../elements/settings/custom-background-picker"; import { showNoticeNotification } from "../../stores/notifications"; +import Config, { setConfig } from "../../config"; const fromMeta = buildCommandForConfigKey("customBackground"); @@ -69,16 +70,20 @@ const customBackgroundCommand: Command = { }, }, { - id: "removeLocalBackground", - display: "Remove local background", + id: "removeCustomBackground", + display: "Remove custom background", icon: "fa-trash", alias: "remove background", available: async (): Promise => { - return await FileStorage.hasFile("LocalBackgroundFile"); + return ( + (await FileStorage.hasFile("LocalBackgroundFile")) || + Config.customBackground !== "" + ); }, exec: async (): Promise => { try { await FileStorage.deleteFile("LocalBackgroundFile"); + setConfig("customBackground", ""); await applyCustomBackground(); await updateUI(); } catch (e) { From 55af5517a48c10368dc581436c3d814b4f30bfc0 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:50:48 +0200 Subject: [PATCH 2/2] Remove alias --- frontend/src/ts/commandline/lists/custom-background.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/ts/commandline/lists/custom-background.ts b/frontend/src/ts/commandline/lists/custom-background.ts index 972957a5b39c..a2f64dd20b9c 100644 --- a/frontend/src/ts/commandline/lists/custom-background.ts +++ b/frontend/src/ts/commandline/lists/custom-background.ts @@ -73,7 +73,6 @@ const customBackgroundCommand: Command = { id: "removeCustomBackground", display: "Remove custom background", icon: "fa-trash", - alias: "remove background", available: async (): Promise => { return ( (await FileStorage.hasFile("LocalBackgroundFile")) ||