Proxy settings set to UseDefaultProxy. Added Check in App.xaml.cs to reset the proxy to UseDefaultProxy if the ProxyServer setting is empty when ManualProxy is set. Closes #1929
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
TaskScheduler.UnobservedTaskException += OnUnobservedException;
+ //Fix incorrect proxy settings by switching to default proxy, if the proxy server settings is empty
+ if (Settings.Default.UseManualProxy && String.IsNullOrWhiteSpace(Settings.Default.ProxyServer))
+ {
+ Settings.Default.UseManualProxy = false;
+ Settings.Default.UseDefaultProxy = true;
+ }
+
InitializeComponent();
}
</DataGrid>
</StackPanel>
</TabItem>
- <TabItem Header="Other">
+ <!--<TabItem Header="Other">
<Grid>
<Grid.Resources>
<Style x:Key="NameColumnStyle" TargetType="TextBlock">
<TextBox x:Name="ContentDisposition" Grid.Row="1" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
<TextBox x:Name="Manifest" Grid.Row="2" Grid.Column="1" Style="{StaticResource ResourceKey=ValueColumnStyle}"/>
</Grid>
- </TabItem>
+ </TabItem>-->
</TabControl>
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
<Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}" IsDefault="False" />
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool UseDefaultProxy {
get {
return ((bool)(this["UseDefaultProxy"]));
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool UseManualProxy {
get {
return ((bool)(this["UseManualProxy"]));
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="UseDefaultProxy" Type="System.Boolean" Scope="User">
- <Value Profile="(Default)">False</Value>
+ <Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="UseManualProxy" Type="System.Boolean" Scope="User">
- <Value Profile="(Default)">True</Value>
+ <Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="CloudfilesAuthenticationUrl" Type="System.String" Scope="Application">
<Value Profile="(Default)">https://auth.api.rackspacecloud.com</Value>
<value>False</value>
</setting>
<setting name="UseDefaultProxy" serializeAs="String">
- <value>False</value>
+ <value>True</value>
</setting>
<setting name="UseManualProxy" serializeAs="String">
- <value>True</value>
+ <value>False</value>
</setting>
<setting name="MustUpgrade" serializeAs="String">
<value>True</value>
Contract.EndContractBlock();
if (_firstPoll) return;
-
+ //TODO: Do I need the "Modified" check if I'm not going to delete files that
+ //were not found on the server on the first run?
+ //TODO: Files that were not found on the server on the first run should be marked IN CONFLICT
var deleteCandidates = from state in FileState.Queryable
where state.Modified <= pollTime && state.FilePath.StartsWith(accountInfo.AccountPath)
select state;