commit 54413c1228f517ab15a45b6e1637eb3197fa26c4 parent 85236f9d2ee16aeca62c35f29b384e518e5d3693 Author: cfillion <cfillion@users.noreply.github.com> Date: Thu, 24 Aug 2017 18:12:43 -0400 browser: display pinned state separately from installation state Diffstat:
M | src/browser.cpp | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/browser.cpp b/src/browser.cpp @@ -766,9 +766,7 @@ string Browser::getValue(const Column col, const Entry &entry) const switch(col) { case StateColumn: { - if(entry.regEntry.pinned) - display += 'p'; - else if(entry.test(ObsoleteFlag)) + if(entry.test(ObsoleteFlag)) display += 'o'; else if(entry.test(OutOfDateFlag)) display += 'u'; @@ -777,6 +775,9 @@ string Browser::getValue(const Column col, const Entry &entry) const else display += '\x20'; + if(entry.regEntry.pinned) + display += 'p'; + if(entry.target) display += *entry.target == nullptr ? 'R' : 'I'; if(entry.pin && entry.canPin())