Skip to content

Commit 4e030a8

Browse files
committed
Do not open settings page when there are only proxy server subscriptions. Closing #410
1 parent 302d4b7 commit 4e030a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/Core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,6 @@ export class Core {
725725
dataForPopup.proxyProfiles = ProfileOperations.getSmartProfileBaseList(settings.proxyProfiles);
726726
dataForPopup.activeProfileId = settings.activeProfileId;
727727
dataForPopup.activeIncognitoProfileId = settings.options.activeIncognitoProfileId;
728-
dataForPopup.hasProxyServers = settings.proxyServers.length > 0;
729728
dataForPopup.proxyServers = settings.proxyServers;
730729
dataForPopup.currentProxyServerId =
731730
(settingsActive.activeProfile?.profileProxyServerId) ||
@@ -734,6 +733,7 @@ export class Core {
734733
dataForPopup.currentTabId = null;
735734
dataForPopup.currentTabIndex = null;
736735
dataForPopup.proxyServersSubscribed = settingsOperationLib.getAllSubscribedProxyServers();
736+
dataForPopup.hasProxyServers = settings.proxyServers.length > 0 || dataForPopup.proxyServersSubscribed?.length > 0;
737737
dataForPopup.updateInfo = settings.updateInfo;
738738
dataForPopup.failedRequests = null;
739739
dataForPopup.notSupportedSetProxySettings = environment.notSupported.setProxySettings;

0 commit comments

Comments
 (0)