From 672c734024e40e7e948fbf367100401add53fe2c Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Fri, 11 Jun 2021 03:56:03 +0100 Subject: [PATCH] Store/Settings: Sort `state` entries alphabetically --- src/renderer/store/modules/settings.js | 79 +++++++++++++------------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js index 3ee7073a..07879e22 100644 --- a/src/renderer/store/modules/settings.js +++ b/src/renderer/store/modules/settings.js @@ -159,55 +159,56 @@ const defaultSideEffectsTriggerId = settingId => const state = { // currentTheme: 'lightRed', - backendFallback: true, - checkForUpdates: true, - checkForBlogPosts: true, - backendPreference: 'local', - landingPage: 'subscriptions', - region: 'US', - listType: 'grid', - thumbnailPreference: '', - invidiousInstance: 'https://invidious.snopyta.org', - defaultProfile: 'allChannels', - barColor: false, - enableSearchSuggestions: true, - rememberHistory: true, - saveWatchedProgress: true, - removeVideoMetaFiles: true, - autoplayVideos: true, autoplayPlaylists: true, - playNextVideo: false, - enableSubtitles: true, - forceLocalBackendForLegacy: false, - proxyVideos: false, - defaultTheatreMode: false, + autoplayVideos: true, + backendFallback: true, + backendPreference: 'local', + barColor: false, + checkForBlogPosts: true, + checkForUpdates: true, + // currentTheme: 'lightRed', + defaultCaptionSettings: '{}', defaultInterval: 5, defaultPlayback: 1, - defaultVideoFormat: 'dash', + defaultProfile: 'allChannels', defaultQuality: '720', - defaultCaptionSettings: '{}', - useProxy: false, - proxyProtocol: 'socks5', - proxyHostname: '127.0.0.1', - proxyPort: '9050', + defaultTheatreMode: false, + defaultVideoFormat: 'dash', disableSmoothScrolling: false, - hideWatchedSubs: false, - useRssFeeds: false, - hideVideoViews: false, - hideVideoLikesAndDislikes: false, + displayVideoPlayButton: true, + enableSearchSuggestions: true, + enableSubtitles: true, + forceLocalBackendForLegacy: false, + hideActiveSubscriptions: false, hideChannelSubscriptions: false, hideCommentLikes: false, + hideLiveChat: false, + hidePlaylists: false, + hidePopularVideos: false, hideRecommendedVideos: false, hideTrendingVideos: false, - hidePopularVideos: false, - hidePlaylists: false, - hideLiveChat: false, - hideActiveSubscriptions: false, - videoVolumeMouseScroll: false, - useSponsorBlock: false, - sponsorBlockUrl: 'https://sponsor.ajay.app', + hideVideoLikesAndDislikes: false, + hideVideoViews: false, + hideWatchedSubs: false, + invidiousInstance: 'https://invidious.snopyta.org', + landingPage: 'subscriptions', + listType: 'grid', + playNextVideo: false, + proxyHostname: '127.0.0.1', + proxyPort: '9050', + proxyProtocol: 'socks5', + proxyVideos: false, + region: 'US', + rememberHistory: true, + removeVideoMetaFiles: true, + saveWatchedProgress: true, sponsorBlockShowSkippedToast: true, - displayVideoPlayButton: true + sponsorBlockUrl: 'https://sponsor.ajay.app', + thumbnailPreference: '', + useProxy: false, + useRssFeeds: false, + useSponsorBlock: false, + videoVolumeMouseScroll: false } const stateWithSideEffects = {