Skip to content

Commit 06f2aaf

Browse files
authored
Merge pull request #3 from Dirkster99/Fix_Issue2
Fix issue2
2 parents 65c3ac2 + ffa4555 commit 06f2aaf

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

source/MRULib/MRU/MRUListViewModel.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,21 @@ private void PinUnpinEntry(IMRUEntryViewModel val)
513513
val.SetIsPinned(newIsPinnedValue);
514514

515515
if (newIsPinnedValue != 0) // Increment next IsPinned order entry
516+
{
516517
_NextIsPinnedValue += 1; // If this entry is a newly pinned enty
518+
519+
// Update all entries if this entry is the first entry to be pinned
520+
if (_NextIsPinnedValue == 2 && Entries.Count > 0)
521+
{
522+
List<IMRUEntryViewModel> values = new List<IMRUEntryViewModel>();
523+
524+
foreach (var item in Entries.Values)
525+
values.Add(item);
526+
527+
foreach (var item in values)
528+
UpdateEntry(item);
529+
}
530+
}
517531
else
518532
{
519533
DecrementPinnedValues(oldIsPinnedValue);

source/MRULib/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[assembly: AssemblyConfiguration("")]
1313
[assembly: AssemblyCompany("")]
1414
[assembly: AssemblyProduct("MRULib")]
15-
[assembly: AssemblyCopyright("Copyright © 2017")]
15+
[assembly: AssemblyCopyright("Copyright © 2017-2018")]
1616
[assembly: AssemblyTrademark("")]
1717
[assembly: AssemblyCulture("")]
1818

@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.0.0")]
55-
[assembly: AssemblyFileVersion("1.0.0.0")]
54+
[assembly: AssemblyVersion("1.0.1.0")]
55+
[assembly: AssemblyFileVersion("1.0.1.0")]

0 commit comments

Comments
 (0)