"Other" tab in File options was removed. Closes #1930
authorPanagiotis Kanavos <pkanavos@gmail.com>
Tue, 24 Jan 2012 14:23:36 +0000 (16:23 +0200)
committerPanagiotis Kanavos <pkanavos@gmail.com>
Tue, 24 Jan 2012 14:24:01 +0000 (16:24 +0200)
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

trunk/Pithos.Client.WPF/App.xaml.cs
trunk/Pithos.Client.WPF/FileProperties/FilePropertiesView.xaml
trunk/Pithos.Client.WPF/Properties/Settings.Designer.cs
trunk/Pithos.Client.WPF/Properties/Settings.settings
trunk/Pithos.Client.WPF/app.config
trunk/Pithos.Core/Agents/NetworkAgent.cs

index 311149f..e69006c 100644 (file)
@@ -32,6 +32,13 @@ namespace Pithos.Client.WPF
             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();            
         }
 
index d1d6b4e..a4a975c 100644 (file)
                         </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" />
index 20a6dc5..d354094 100644 (file)
@@ -181,7 +181,7 @@ namespace Pithos.Client.WPF.Properties {
         
         [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"]));
@@ -193,7 +193,7 @@ namespace Pithos.Client.WPF.Properties {
         
         [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"]));
index 7a69659..a466a69 100644 (file)
       <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>
index 707287d..93124a0 100644 (file)
         <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>
index 9b2f301..0cf449e 100644 (file)
@@ -628,7 +628,9 @@ namespace Pithos.Core.Agents
             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;