Skip to content

Commit

Permalink
Add missing styling, clearify that you really don't want to have auto…
Browse files Browse the repository at this point in the history
…play on too
  • Loading branch information
boltgolt committed Feb 14, 2025
1 parent c2e8883 commit 270caa4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/iSponsorBlockTV/setup-wizard-style.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -383,3 +383,9 @@ MigrationScreen {
padding: 1;
height: auto;
}

/* Force end */
#force-end-container{
padding: 1;
height: auto;
}
8 changes: 6 additions & 2 deletions src/iSponsorBlockTV/setup_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,10 @@ def compose(self) -> ComposeResult:
yield Label("Force video end", classes="title")
yield Label(
(
"If enabled, every video will be forcefully stopped once it has fully",
"If enabled, every video will be forcefully stopped once it has fully"
" played through. This skips any post-video ads that might play and"
" returns you to the YoutTube home screen.",
" returns you to the YoutTube home screen. Autoplay cannot be enabled"
" at the same time."
),
classes="subtitle",
id="force-end-subtitle",
Expand All @@ -911,6 +912,9 @@ def compose(self) -> ComposeResult:
def changed_skip(self, event: Checkbox.Changed):
self.config.force_end = event.checkbox.value

if event.checkbox.value:
self.app.query_one("#autoplay-switch").value = False


class ISponsorBlockTVSetupMainScreen(Screen):
"""Making this a separate screen to avoid a bug: https://github.com/Textualize/textual/issues/3221"""
Expand Down

0 comments on commit 270caa4

Please sign in to comment.