Modified icon
authorPanagiotis Kanavos <pkanavos@gmail.com>
Tue, 20 Dec 2011 16:21:05 +0000 (18:21 +0200)
committerPanagiotis Kanavos <pkanavos@gmail.com>
Tue, 20 Dec 2011 16:21:05 +0000 (18:21 +0200)
Fixed account SiteUri

trunk/Pithos.Client.WPF/Images/Pithos.ico
trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
trunk/Pithos.Core/PithosMonitor.cs

index 3ee05b0..823f2ed 100644 (file)
Binary files a/trunk/Pithos.Client.WPF/Images/Pithos.ico and b/trunk/Pithos.Client.WPF/Images/Pithos.ico differ
index 4a9881c..b5d6a5e 100644 (file)
@@ -131,14 +131,7 @@ namespace Pithos.Client.WPF {
         private async Task StartMonitoring()
         {
             try
-            {
-                if (Settings.Accounts == null)
-                {
-                    Settings.Accounts=new AccountsCollection();
-                    Settings.Save();
-                    return;
-                }
-                  
+            {                  
                 foreach (var account in Settings.Accounts)
                 {
                     await MonitorAccount(account);
@@ -340,10 +333,10 @@ namespace Pithos.Client.WPF {
 
         public void GoToSite(AccountInfo account)
         {
-            var site = String.Format("{0}/ui/?token={1}&user={2}",
+            /*var site = String.Format("{0}/ui/?token={1}&user={2}",
                 account.SiteUri,account.Token,
-                account.UserName);
-            Process.Start(site);
+                account.UserName);*/
+            Process.Start(account.SiteUri);
         }
 
         public void ShowFileProperties()
index 874f580..d0a302e 100644 (file)
@@ -136,7 +136,8 @@ namespace Pithos.Core
             CloudClient.UsePithos = true;
             CloudClient.AuthenticationUrl = this.AuthenticationUrl;            
 
-            _accountInfo = CloudClient.Authenticate();
+            _accountInfo = CloudClient.Authenticate();            
+            _accountInfo.SiteUri = AuthenticationUrl;
             _accountInfo.AccountPath = RootPath;