improve display of failed transfer alert
This commit is contained in:
parent
2433f6ca5a
commit
11c1f32c51
2 changed files with 8 additions and 5 deletions
|
@ -96,10 +96,10 @@ transferThread dstatus slots t info runner program = case (transferRemote info,
|
|||
(_, _, _, pid)
|
||||
<- createProcess (proc program $ toCommand params)
|
||||
{ create_group = True }
|
||||
status <- waitForProcess pid
|
||||
ok <- (==) ExitSuccess <$> waitForProcess pid
|
||||
addAlert dstatus $
|
||||
makeAlertFiller (status == ExitSuccess) $
|
||||
transferFileAlert direction file
|
||||
makeAlertFiller ok $
|
||||
transferFileAlert direction ok file
|
||||
where
|
||||
params =
|
||||
[ Param "transferkey"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue