Fixed problem when changing the URL, also changed the SettingsForm to use Greenshot controls for binding language & settings.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1772 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-11 11:11:43 +00:00
commit 6dfc75a492
4 changed files with 29 additions and 44 deletions

View file

@ -119,7 +119,15 @@ namespace GreenshotJiraPlugin {
/// Implementation of the IPlugin.Configure
/// </summary>
public virtual void Configure() {
string url = config.Url;
config.ShowConfigDialog();
// check for re-login
if (jiraConnector.isLoggedIn && !string.IsNullOrEmpty(url)) {
if (!url.Equals(config.Url)) {
jiraConnector.logout();
jiraConnector.login();
}
}
}
/// <summary>