Add option to delete media (#1014)
## Description Adds a setting to enable "Media management" which adds a context menu item to delete media. This is accessible using either the More button or long clicking. You can delete episodes, seasons, series and movies/videos. If order for the option to appear the current user must have server-side settings for "Allow media deletion from" enabled for the library and the in-app setting under Settings->Advanced Settings->"Show media management options". ### Related issues Closes #104 ### Testing Emulator ## Screenshots ### Context menu  ### Confirmation  ## AI or LLM usage None
This commit is contained in:
parent
0b73b4cf64
commit
8935067c5a
19 changed files with 597 additions and 53 deletions
|
|
@ -741,6 +741,18 @@ sealed interface AppPreference<Pref, T> {
|
|||
valueToIndex = { it.number },
|
||||
)
|
||||
|
||||
val ManageMedia =
|
||||
AppSwitchPreference<AppPreferences>(
|
||||
title = R.string.show_media_management,
|
||||
defaultValue = false,
|
||||
getter = { it.interfacePreferences.enableMediaManagement },
|
||||
setter = { prefs, value ->
|
||||
prefs.updateInterfacePreferences { enableMediaManagement = value }
|
||||
},
|
||||
summaryOn = R.string.enabled,
|
||||
summaryOff = R.string.disabled,
|
||||
)
|
||||
|
||||
val OneClickPause =
|
||||
AppSwitchPreference<AppPreferences>(
|
||||
title = R.string.one_click_pause,
|
||||
|
|
@ -1110,6 +1122,7 @@ val advancedPreferences =
|
|||
preferences =
|
||||
listOf(
|
||||
AppPreference.ShowClock,
|
||||
AppPreference.ManageMedia,
|
||||
AppPreference.CombineContinueNext,
|
||||
// Temporarily disabled, see https://github.com/damontecres/Wholphin/pull/127#issuecomment-3478058418
|
||||
// AppPreference.NavDrawerSwitchOnFocus,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue