Merge pull request #1980 from syeopite/fix1625

Allow default_home config to be an empty string
This commit is contained in:
TheFrenchGhosty 2021-04-05 14:44:16 +00:00 committed by GitHub
commit f20d420aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ struct ConfigPreferences
property player_style : String = "invidious" property player_style : String = "invidious"
property quality : String = "hd720" property quality : String = "hd720"
property quality_dash : String = "auto" property quality_dash : String = "auto"
property default_home : String = "Popular" property default_home : String? = "Popular"
property feed_menu : Array(String) = ["Popular", "Trending", "Subscriptions", "Playlists"] property feed_menu : Array(String) = ["Popular", "Trending", "Subscriptions", "Playlists"]
property related_videos : Bool = true property related_videos : Bool = true
property sort : String = "published" property sort : String = "published"

View File

@ -68,7 +68,7 @@ struct Preferences
property quality : String = CONFIG.default_user_preferences.quality property quality : String = CONFIG.default_user_preferences.quality
@[JSON::Field(converter: Preferences::ProcessString)] @[JSON::Field(converter: Preferences::ProcessString)]
property quality_dash : String = CONFIG.default_user_preferences.quality_dash property quality_dash : String = CONFIG.default_user_preferences.quality_dash
property default_home : String = CONFIG.default_user_preferences.default_home property default_home : String? = CONFIG.default_user_preferences.default_home
property feed_menu : Array(String) = CONFIG.default_user_preferences.feed_menu property feed_menu : Array(String) = CONFIG.default_user_preferences.feed_menu
property related_videos : Bool = CONFIG.default_user_preferences.related_videos property related_videos : Bool = CONFIG.default_user_preferences.related_videos