bugfix: don't abort player selection
...upon cancellation of player creation
This commit is contained in:
@@ -331,12 +331,7 @@ confirmCreatePlayerC = Controller
|
||||
modify addPlayer
|
||||
join $ gets $ view $ progMode.createPlayerStateL.cpsSuccessCallback
|
||||
Just False ->
|
||||
ifM (gets $ view $ progMode.createPlayerStateL.cpsAbortable)
|
||||
(join $ gets $ view $ progMode.createPlayerStateL.cpsFailureCallback)
|
||||
(modify $ progMode.createPlayerStateL
|
||||
%~ (cpsNumber .~ Nothing)
|
||||
. (cpsName .~ "")
|
||||
. (cpsPosition .~ ""))
|
||||
join $ gets $ view $ progMode.createPlayerStateL.cpsFailureCallback
|
||||
Nothing -> return ()
|
||||
return True
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user