Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Version 1.2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDuffman85 authored and TheDuffman85 committed Mar 1, 2015
1 parent 7eac3ac commit 1dc19df
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
13 changes: 6 additions & 7 deletions Synology Download Station Adapter/Adapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -567,17 +567,16 @@ public static bool AddLinksToDownloadStation(List<string> links)
}
}

}

balloonMsg = totalLinkCount + " link(s) added";

balloonMsg = totalLinkCount + " link(s) added";
if (corruptedLinks.Count > 0)
{
balloonMsg += "\r\n" + corruptedLinks.Count + " links(s) were corrupted";
}

if (corruptedLinks.Count > 0)
{
balloonMsg += "\r\n" + corruptedLinks.Count + " links(s) were corrupted";
Adapter.ShowBalloonTip(balloonMsg, ToolTipIcon.Info);
}

Adapter.ShowBalloonTip(balloonMsg, ToolTipIcon.Info);
return true;
}
else
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions Synology Download Station Adapter/frmSelectHoster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,23 @@ public void SelectHoster(Dictionary<string, List<string>> validHostLinks)

this.ShowDialog();
}

private void frmSelectHoster_Shown(object sender, EventArgs e)
private void clbHoster_ItemCheck(object sender, ItemCheckEventArgs e)
{
// For some reason the very first time the windows was shown in background. This workaround will fix that.
this.TopMost = true;
if (e.NewValue == CheckState.Checked ||
clbHoster.CheckedItems.Count > 1 ||
(clbHoster.CheckedItems.Count == 1 && e.NewValue != CheckState.Unchecked))
{
btnOk.Text = "Ok";
}
else
{
btnOk.Text = "Cancel";
}
}

#endregion


}
}

0 comments on commit 1dc19df

Please sign in to comment.