Last minute changes to the beta release.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@94 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
@@ -112,7 +112,7 @@ namespace Duplicati.GUI.Wizard_pages.Backends.File
|
||||
return;
|
||||
}
|
||||
|
||||
m_wrapper.Path = TargetFolder.Text;
|
||||
m_wrapper.Path = targetpath;
|
||||
if (UseCredentials.Checked)
|
||||
{
|
||||
m_wrapper.Username = Username.Text;
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Duplicati.GUI.Wizard_pages
|
||||
m_owner.ButtonPanel.Controls.Add(ShowAdvanced);
|
||||
ShowAdvanced.Top = m_owner.CancelButton.Top;
|
||||
ShowAdvanced.Left = m_owner.ButtonPanel.Width - m_owner.CancelButton.Right;
|
||||
ShowAdvanced.Visible = true;
|
||||
ShowAdvanced.Visible = false; //true;
|
||||
args.TreatAsLast = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace Duplicati.Library.Core
|
||||
{
|
||||
public static long ParseSize(string size, string defaultSuffix)
|
||||
{
|
||||
if (string.IsNullOrEmpty(size))
|
||||
return 0;
|
||||
|
||||
size = size.ToLower().Trim();
|
||||
|
||||
if (size.EndsWith("gb") || size.EndsWith("mb") || size.EndsWith("kb") || size.EndsWith("b"))
|
||||
return ParseSize(size);
|
||||
else
|
||||
@@ -35,8 +40,9 @@ namespace Duplicati.Library.Core
|
||||
|
||||
public static long ParseSize(string size)
|
||||
{
|
||||
if (size == null)
|
||||
if (string.IsNullOrEmpty(size))
|
||||
return 0;
|
||||
|
||||
string origsize = size;
|
||||
|
||||
size = size.Trim().ToLower();
|
||||
|
||||
Reference in New Issue
Block a user