From 53b6023857bbbfd34bea2b9bf1429ba772d1f111 Mon Sep 17 00:00:00 2001 From: twenty5151 Date: Sun, 5 Sep 2021 19:24:10 +0100 Subject: [PATCH] Show progress bar in entry details view again So that "Copying..." isn't stuck as the footer (until it's cleared) --- src/kpxhs/ViewEvents/Copy.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kpxhs/ViewEvents/Copy.hs b/src/kpxhs/ViewEvents/Copy.hs index d26eed3..f49369a 100644 --- a/src/kpxhs/ViewEvents/Copy.hs +++ b/src/kpxhs/ViewEvents/Copy.hs @@ -22,7 +22,7 @@ import Types , CopyType (CopyUsername) , Event (ClearClipCount, Copying) , State - , View (BrowserView, SearchView) + , View (BrowserView, EntryDetailsView, SearchView) , activeView , chan , clearTimeout @@ -94,7 +94,7 @@ handleClipCountInner st count timeout' = do -- I think Int -> Float is fine because Float is larger than Int -- so an int shouldn't be truncated v = fromIntegral count / fromIntegral timeout' - f = if st^.activeView == BrowserView || st^.activeView == SearchView + f = if st^.activeView `elem` [BrowserView, SearchView, EntryDetailsView] then footer .~ P.progressBar label v else id