Skip to content

Commit 0bd6c1e

Browse files
committed
Hotfix: custom template broken
1 parent de5a6b2 commit 0bd6c1e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app/src/main/java/com/junkfood/seal/ui/page/download/DownloadViewModel.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,8 @@ class DownloadViewModel @Inject constructor() : ViewModel() {
304304
} else {
305305
commands.add(m.group(2).toString())
306306
}
307-
request.addCommands(commands)
308307
}
309-
for (command in request.buildCommand())
310-
Log.d(TAG, command)
308+
request.addCommands(commands)
311309
YoutubeDL.getInstance().execute(request) { progress, _, line ->
312310
mutableStateFlow.update { it.copy(progress = progress, progressText = line) }
313311
NotificationUtil.updateNotification(

app/src/main/java/com/junkfood/seal/ui/page/settings/download/DownloadPreferences.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ fun DownloadPreferences(
226226
PreferenceSwitch(
227227
title = stringResource(R.string.print_details),
228228
description = stringResource(R.string.print_details_desc),
229-
enabled = !customCommandEnable,
230229
icon = if (displayErrorReport) Icons.Outlined.Print else Icons.Outlined.PrintDisabled,
231230
onClick = {
232231
displayErrorReport = !displayErrorReport

0 commit comments

Comments
 (0)