From 270caa4d8cc6147f4c785048318b7a9db54e4878 Mon Sep 17 00:00:00 2001 From: boltgolt Date: Fri, 14 Feb 2025 09:22:27 +0100 Subject: [PATCH] Add missing styling, clearify that you really don't want to have autoplay on too --- src/iSponsorBlockTV/setup-wizard-style.tcss | 6 ++++++ src/iSponsorBlockTV/setup_wizard.py | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/iSponsorBlockTV/setup-wizard-style.tcss b/src/iSponsorBlockTV/setup-wizard-style.tcss index cde381d..0f68fa2 100644 --- a/src/iSponsorBlockTV/setup-wizard-style.tcss +++ b/src/iSponsorBlockTV/setup-wizard-style.tcss @@ -383,3 +383,9 @@ MigrationScreen { padding: 1; height: auto; } + +/* Force end */ +#force-end-container{ + padding: 1; + height: auto; +} diff --git a/src/iSponsorBlockTV/setup_wizard.py b/src/iSponsorBlockTV/setup_wizard.py index 026bb08..1764e2c 100644 --- a/src/iSponsorBlockTV/setup_wizard.py +++ b/src/iSponsorBlockTV/setup_wizard.py @@ -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", @@ -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"""