From dd19241a08f8738f1c2b1461903b496789955d5e Mon Sep 17 00:00:00 2001 From: pkanavos Date: Tue, 1 May 2012 19:18:48 +0300 Subject: [PATCH] Adding a new account now forces a logout to clear any stale Pithos cookies --- trunk/Pithos.Client.WPF/App.xaml.cs | 2 +- .../Diagnostics/log4netForwarder.cs | 6 ++-- .../FileProperties/ConflictsView.xaml | 4 ++- .../FileProperties/ConflictsViewModel.cs | 5 +++ trunk/Pithos.Client.WPF/PithosAccount.cs | 8 ++++- .../Preferences/AddAccountViewModel.cs | 2 +- trunk/Pithos.Client.WPF/Preferences/LoginView.xaml | 10 ++++-- .../Preferences/LoginView.xaml.cs | 33 +++++++++++++++++--- .../Preferences/PreferencesViewModel.cs | 11 +++++++ .../Properties/Settings.Designer.cs | 8 +++++ .../Pithos.Client.WPF/Properties/Settings.settings | 3 ++ trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | 31 +++++++++--------- trunk/Pithos.Client.WPF/app.config | 23 ++++++++++++-- trunk/Pithos.Core/Agents/PollAgent.cs | 4 +++ trunk/Pithos.Interfaces/AccountSettings.cs | 11 +++++++ 15 files changed, 130 insertions(+), 31 deletions(-) diff --git a/trunk/Pithos.Client.WPF/App.xaml.cs b/trunk/Pithos.Client.WPF/App.xaml.cs index f18643c..c44afb1 100644 --- a/trunk/Pithos.Client.WPF/App.xaml.cs +++ b/trunk/Pithos.Client.WPF/App.xaml.cs @@ -52,6 +52,7 @@ using System.Windows; using Caliburn.Micro; using Pithos.Client.WPF.Configuration; using Pithos.Client.WPF.Properties; +using Pithos.Interfaces; using log4net.Appender; using log4net.Core; using log4net.Repository.Hierarchy; @@ -75,7 +76,6 @@ namespace Pithos.Client.WPF { //var instanceMutex=new Mutex() - InitializeLogging(); ///Register Application in the Restartmanager service diff --git a/trunk/Pithos.Client.WPF/Diagnostics/log4netForwarder.cs b/trunk/Pithos.Client.WPF/Diagnostics/log4netForwarder.cs index 670c975..615116c 100644 --- a/trunk/Pithos.Client.WPF/Diagnostics/log4netForwarder.cs +++ b/trunk/Pithos.Client.WPF/Diagnostics/log4netForwarder.cs @@ -131,13 +131,13 @@ namespace Pithos.Client.WPF.Diagnostics level = Level.Verbose; break; case TraceEventType.Warning: - level = Level.Warn; + level = Level.Info; break; case TraceEventType.Critical: - level = Level.Critical; + level = Level.Info; break; case TraceEventType.Error: - level = Level.Error; + level = Level.Info; break; } return level; diff --git a/trunk/Pithos.Client.WPF/FileProperties/ConflictsView.xaml b/trunk/Pithos.Client.WPF/FileProperties/ConflictsView.xaml index 4e2e0e6..acd9509 100644 --- a/trunk/Pithos.Client.WPF/FileProperties/ConflictsView.xaml +++ b/trunk/Pithos.Client.WPF/FileProperties/ConflictsView.xaml @@ -48,7 +48,9 @@ - There are no conflicts. + There are no conflicts.