GTK: clear the Statusbar before pushing to it
Since we only show the most recent operationBuffer we only want one item on the stack.
This commit is contained in:
parent
c28eb1976a
commit
ccc2f6f331
@ -244,6 +244,7 @@ moveInit :: [Row] -> MyGUI -> MyView -> IO ()
|
||||
moveInit [row] mygui myview = do
|
||||
writeTVarIO (operationBuffer myview) (FMove . MP1 $ row)
|
||||
let sbmsg = "Move buffer: " ++ fullPath row
|
||||
popStatusbar mygui
|
||||
void $ pushStatusBar mygui sbmsg
|
||||
moveInit _ _ _ = withErrorDialog
|
||||
. throw $ InvalidOperation
|
||||
@ -258,6 +259,7 @@ copyInit :: [Row] -> MyGUI -> MyView -> IO ()
|
||||
copyInit [row] mygui myview = do
|
||||
writeTVarIO (operationBuffer myview) (FCopy . CP1 $ row)
|
||||
let sbmsg = "Copy buffer: " ++ fullPath row
|
||||
popStatusbar mygui
|
||||
void $ pushStatusBar mygui sbmsg
|
||||
copyInit _ _ _ = withErrorDialog
|
||||
. throw $ InvalidOperation
|
||||
|
Loading…
Reference in New Issue
Block a user