From 03a61292f6c7a4afabb21713a50ac710edbdca22 Mon Sep 17 00:00:00 2001
From: inotia00 <108592928+inotia00@users.noreply.github.com>
Date: Thu, 16 Nov 2023 19:18:48 +0900
Subject: [PATCH] feat(YouTub Meusic/Hide flyout panel): add `Hide remove from
playlist menu` settings
---
.../patches/music/flyoutpanel/component/FlyoutPanelPatch.kt | 5 +++++
src/main/resources/music/settings/host/values/strings.xml | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt b/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt
index 11f4620de..a1d1214df 100644
--- a/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt
@@ -125,6 +125,11 @@ object FlyoutPanelPatch : BytecodePatch(
"revanced_hide_flyout_panel_remove_from_library",
"false"
)
+ SettingsPatch.addMusicPreferenceWithoutSummary(
+ CategoryType.FLYOUT,
+ "revanced_hide_flyout_panel_remove_from_playlist",
+ "false"
+ )
SettingsPatch.addMusicPreferenceWithoutSummary(
CategoryType.FLYOUT,
"revanced_hide_flyout_panel_report",
diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml
index 8d905f504..c3f9a6cdd 100644
--- a/src/main/resources/music/settings/host/values/strings.xml
+++ b/src/main/resources/music/settings/host/values/strings.xml
@@ -105,6 +105,7 @@ WARNING: Do not enable new player backgrounds while this is enabled."
Hide like and dislike button
Hide play next menu
Hide remove from library menu
+ Hide remove from playlist menu
Hide report menu
Hide save episode for later menu
Hide save to library menu