Przeglądaj źródła

ref: remove "autoLikePlayerBarToggleBtn" feat for now

Sv443 10 miesięcy temu
rodzic
commit
6fc0e6fbac
3 zmienionych plików z 15 dodań i 11 usunięć
  1. 5 3
      src/config.ts
  2. 7 6
      src/features/index.ts
  3. 3 2
      src/types.ts

+ 5 - 3
src/config.ts

@@ -71,14 +71,16 @@ export const migrations: DataMigrationsDict = {
   6: (oldData: FeatureConfig) => useNewDefaultIfUnchanged(
     useDefaultConfig(oldData, [
       "autoLikeChannels", "autoLikeChannelToggleBtn",
-      "autoLikePlayerBarToggleBtn", "autoLikeTimeout",
-      "autoLikeShowToast", "autoLikeOpenMgmtDialog",
-      "toastDuration", "initTimeout",
+      "autoLikeTimeout", "autoLikeShowToast",
+      "autoLikeOpenMgmtDialog", "toastDuration",
+      "initTimeout",
     ]), [
       { key: "rememberSongTimeSites", oldDefault: "ytm" },
       { key: "volumeSliderScrollStep", oldDefault: 10 },
     ],
   ),
+  // TODO(v2.2): use default for "autoLikePlayerBarToggleBtn"
+
   // TODO: once advanced filtering is fully implemented, clear cache on migration to fv6
   // 6 -> 7 (vX.X)
   // 7: (oldData: FeatureConfig) => 

+ 7 - 6
src/features/index.ts

@@ -470,12 +470,13 @@ export const featInfo = {
     reloadRequired: false,
     enable: noop,
   },
-  autoLikePlayerBarToggleBtn: {
-    type: "toggle",
-    category: "input",
-    default: false,
-    textAdornment: adornments.reloadRequired,
-  },
+  // TODO(v2.2):
+  // autoLikePlayerBarToggleBtn: {
+  //   type: "toggle",
+  //   category: "input",
+  //   default: false,
+  //   textAdornment: adornments.reloadRequired,
+  // },
   autoLikeTimeout: {
     type: "slider",
     category: "input",

+ 3 - 2
src/types.ts

@@ -422,8 +422,9 @@ export interface FeatureConfig {
   autoLikeChannels: boolean;
   /** Whether to show toggle buttons on the channel page to enable/disable auto-liking for that channel */
   autoLikeChannelToggleBtn: boolean;
-  /** Whether to show a toggle button in the media controls to enable/disable auto-liking for those channel(s) */
-  autoLikePlayerBarToggleBtn: boolean;
+  // TODO(v2.2):
+  // /** Whether to show a toggle button in the media controls to enable/disable auto-liking for those channel(s) */
+  // autoLikePlayerBarToggleBtn: boolean;
   /** How long to wait after a video has started playing to auto-like it */
   autoLikeTimeout: number;
   /** Whether to show a toast when a video is auto-liked */