GTK: fix history when clicking on HOME button
This commit is contained in:
parent
9d572c8a6e
commit
3c6aca04b4
@ -294,7 +294,9 @@ urlGoTo mygui myview = withErrorDialog $ do
|
|||||||
goHome :: MyGUI -> MyView -> IO ()
|
goHome :: MyGUI -> MyView -> IO ()
|
||||||
goHome mygui myview = withErrorDialog $ do
|
goHome mygui myview = withErrorDialog $ do
|
||||||
mhomedir <- getEnv "HOME"
|
mhomedir <- getEnv "HOME"
|
||||||
refreshView mygui myview (P.parseAbs =<< mhomedir)
|
forM_ (P.parseAbs =<< mhomedir :: Maybe (Path Abs)) $ \fp' ->
|
||||||
|
whenM (canOpenDirectory fp')
|
||||||
|
(goDir mygui myview =<< (readFile getFileInfo $ fp'))
|
||||||
|
|
||||||
|
|
||||||
-- |Supposed to be used with 'withRows'. Opens a file or directory.
|
-- |Supposed to be used with 'withRows'. Opens a file or directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user