Ver Fonte

ref: unimportant stuff

Sv443 há 3 dias atrás
pai
commit
18b3af38d4
2 ficheiros alterados com 5 adições e 4 exclusões
  1. 1 1
      assets/translations/en-US.json
  2. 4 3
      src/features/index.ts

+ 1 - 1
assets/translations/en-US.json

@@ -384,7 +384,7 @@
   "feature_btn_resetConfig": "Reset settings",
   "feature_btn_resetConfig_running": "Resetting...",
   "feature_desc_resetEverything": "Reset all stored data to the default values",
-  "feature_helptext_resetEverything": "This will reset absolutely everything to its default values, including the feature configuration, the lyrics cache and auto-liked channels.\nThis will also reset all settings to their default values.\nThis is useful if you want to start over with a clean slate or if you are experiencing problems with the script.",
+  "feature_helptext_resetEverything": "This will reset absolutely everything to its default values, including the feature configuration, the lyrics cache and auto-liked channels.\nThis is useful if you want to start over with a clean slate or if you are experiencing problems with the script.",
   "feature_btn_resetEverything": "Reset everything",
   "feature_btn_resetEverything_running": "Resetting...",
   "feature_desc_advancedMode": "Show advanced settings (reloads the menu)",

+ 4 - 3
src/features/index.ts

@@ -73,7 +73,7 @@ const adornments = {
   globe: async () => getAdornHtml("bytm-locale-icon", undefined, "icon-globe_small"),
   alert: async (title: StringGen) => getAdornHtml("bytm-warning-icon", title, "icon-error", "role=\"alert\""),
   reload: async () => getFeature("advancedMode") ? getAdornHtml("bytm-reload-icon", t("feature_requires_reload"), "icon-reload") : undefined,
-} satisfies Record<string, AdornmentFunc>;
+} as const satisfies Record<string, AdornmentFunc>;
 
 /** Order of adornment elements in the {@linkcode combineAdornments()} function */
 const adornmentOrder = new Map<AdornmentFunc, number>();
@@ -116,7 +116,7 @@ const options = {
     { value: "normal", label: t("color_lightness_normal") },
     { value: "lighter", label: t("color_lightness_lighter") },
   ],
-};
+} as const;
 
 //#region renderers
 
@@ -849,7 +849,8 @@ export const featInfo = {
       { value: LogLevel.Info, label: t("log_level_info") },
     ],
     default: LogLevel.Info,
-    textAdornment: adornments.reload,
+    advanced: true,
+    textAdornment: () => combineAdornments([adornments.advanced, adornments.reload]),
   },
   advancedMode: {
     type: "toggle",