From 901c4422b58d581fe57d309a78d9797960bfc988 Mon Sep 17 00:00:00 2001 From: Benexl Date: Tue, 18 Nov 2025 15:01:07 +0300 Subject: [PATCH] feat: add welcome screen config option --- viu_media/core/config/defaults.py | 1 + viu_media/core/config/descriptions.py | 1 + viu_media/core/config/model.py | 3 +++ 3 files changed, 5 insertions(+) diff --git a/viu_media/core/config/defaults.py b/viu_media/core/config/defaults.py index 01ff26c..bc08a6c 100644 --- a/viu_media/core/config/defaults.py +++ b/viu_media/core/config/defaults.py @@ -2,6 +2,7 @@ from ..constants import APP_DATA_DIR, DEFAULTS_DIR, PLATFORM, USER_VIDEOS_DIR from ..utils import detect # GeneralConfig +GENERAL_WELCOME_SCREEN = True GENERAL_PYGMENT_STYLE = "github-dark" GENERAL_PREFERRED_SPINNER = "smiley" GENERAL_API_CLIENT = "anilist" diff --git a/viu_media/core/config/descriptions.py b/viu_media/core/config/descriptions.py index 9801f0e..64bc844 100644 --- a/viu_media/core/config/descriptions.py +++ b/viu_media/core/config/descriptions.py @@ -1,5 +1,6 @@ # GeneralConfig +GENERAL_WELCOME_SCREEN = "Whether to enable the welcome screen, that runs once per day" GENERAL_PYGMENT_STYLE = "The pygment style to use" GENERAL_PREFERRED_SPINNER = "The spinner to use" GENERAL_API_CLIENT = "The media database API to use (e.g., 'anilist', 'jikan')." diff --git a/viu_media/core/config/model.py b/viu_media/core/config/model.py index f125b7a..234a9bf 100644 --- a/viu_media/core/config/model.py +++ b/viu_media/core/config/model.py @@ -156,6 +156,9 @@ class GeneralConfig(BaseModel): default=defaults.GENERAL_API_CLIENT, description=desc.GENERAL_API_CLIENT, ) + welcome_screen: bool = Field( + default=defaults.GENERAL_WELCOME_SCREEN, description=desc.GENERAL_WELCOME_SCREEN + ) provider: ProviderName = Field( default=ProviderName.ALLANIME, description=desc.GENERAL_PROVIDER,