diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-17 14:28:33 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-17 14:28:33 -0400 |
commit | f60ac335e4e827fd242ab22539adb49f26e2c319 (patch) | |
tree | 255e16e03210b9ccb6faf72b4afd29b7262f42d9 /UI/Zenity.hs | |
parent | b474ab87ae45ed77f42eb41f658a55262bd92217 (diff) | |
download | keysafe-f60ac335e4e827fd242ab22539adb49f26e2c319.tar.gz |
add progress bars to restore
also, restore actually works!
Diffstat (limited to 'UI/Zenity.hs')
-rw-r--r-- | UI/Zenity.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UI/Zenity.hs b/UI/Zenity.hs index b74631f..228b11a 100644 --- a/UI/Zenity.hs +++ b/UI/Zenity.hs @@ -115,7 +115,7 @@ myPromptKeyId title desc l = do return $ Just (KeyId (BU8.fromString kid)) else return Nothing -myWithProgress :: Title -> Desc -> ((Percent -> IO ()) -> IO ()) -> IO () +myWithProgress :: Title -> Desc -> ((Percent -> IO ()) -> IO a) -> IO a myWithProgress title desc a = bracket setup teardown (a . sendpercent) where setup = do |