mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Modifications for the JIRA code needed to upgrade the package. [skip ci]
This commit is contained in:
parent
e7e1d768b9
commit
69deb19b1f
4 changed files with 31 additions and 31 deletions
|
@ -120,7 +120,7 @@ namespace GreenshotJiraPlugin
|
|||
public async Task AddJiraInstanceAsync(JiraApi jiraInstance, CancellationToken token = default(CancellationToken))
|
||||
{
|
||||
_jiraInstances.Add(jiraInstance);
|
||||
var projects = await jiraInstance.GetProjectsAsync(token).ConfigureAwait(false);
|
||||
var projects = await jiraInstance.Project.GetAllAsync(cancellationToken: token).ConfigureAwait(false);
|
||||
if (projects != null)
|
||||
{
|
||||
foreach (var project in projects)
|
||||
|
@ -208,8 +208,7 @@ namespace GreenshotJiraPlugin
|
|||
if (_recentJiras.Count > _maxEntries)
|
||||
{
|
||||
// Add it to the list of recent Jiras
|
||||
IList<JiraDetails> clonedList = new List<JiraDetails>(_recentJiras.Values);
|
||||
_recentJiras = (from jiraDetails in clonedList
|
||||
_recentJiras = (from jiraDetails in _recentJiras.Values.ToList()
|
||||
orderby jiraDetails.SeenAt descending
|
||||
select jiraDetails).Take(_maxEntries).ToDictionary(jd => jd.JiraKey, jd => jd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue