Update issue #299
Status: Fixed I have now applied the patch to trunk, thanks :) git-svn-id: https://duplicati.googlecode.com/svn/trunk@583 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
@@ -127,7 +127,7 @@ namespace Duplicati.GUI
|
||||
if (Program.DataConnection.GetObjects<Datamodel.Schedule>().Length == 0)
|
||||
ShowWizard();
|
||||
else
|
||||
ShowStatus();
|
||||
ToggleStatus();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ namespace Duplicati.GUI
|
||||
}
|
||||
|
||||
|
||||
public void ShowStatus()
|
||||
private void ChangeStatusVisibility(bool toggle)
|
||||
{
|
||||
if (InvokeRequired)
|
||||
{
|
||||
@@ -238,8 +238,21 @@ namespace Duplicati.GUI
|
||||
if (StatusDialog == null || !StatusDialog.Visible)
|
||||
StatusDialog = new ServiceStatus();
|
||||
|
||||
StatusDialog.Show();
|
||||
StatusDialog.Activate();
|
||||
if (toggle && StatusDialog.Visible)
|
||||
StatusDialog.Close();
|
||||
else
|
||||
{
|
||||
StatusDialog.Show();
|
||||
StatusDialog.Activate();
|
||||
}
|
||||
}
|
||||
public void ToggleStatus()
|
||||
{
|
||||
ChangeStatusVisibility(true);
|
||||
}
|
||||
public void ShowStatus()
|
||||
{
|
||||
ChangeStatusVisibility(false);
|
||||
}
|
||||
|
||||
public void ShowWizard()
|
||||
|
||||
Reference in New Issue
Block a user