File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Source/NETworkManager/ViewModels Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ private FirewallSettingsViewModel()
111111 _isLoading = true ;
112112
113113 LoadSettings ( ) ;
114+
114115 _isLoading = false ;
115116 }
116117
@@ -124,6 +125,8 @@ private void LoadSettings()
124125 LocalPortsHaveItems = SettingsManager . Current . Firewall_LocalPortsHistoryConfig ? . Count > 0 ;
125126 RemotePortsHaveItems = SettingsManager . Current . Firewall_RemotePortsHistoryConfig ? . Count > 0 ;
126127 MaxLengthHistory = SettingsManager . Current . Firewall_MaxLengthHistory ;
128+ // This default value is only present when the settings are initialized for the first time,
129+ // because Int32Validator does not allow 0 or negative values as input.
127130 if ( MaxLengthHistory is 0 )
128131 MaxLengthHistory = - 1 ;
129132 }
You can’t perform that action at this time.
0 commit comments