Implemented history for DirectoryView

For some reason DirectoryView won't draw changes all of the time...
This commit is contained in:
Sasha Koshka
2023-03-23 14:37:44 -04:00
parent f74f6a43f8
commit 14802b4b82
2 changed files with 51 additions and 11 deletions

View File

@@ -53,6 +53,15 @@ func run () {
choose(locationInput.Value())
})
choose(homeDir)
backButton.OnClick (func () {
directoryView.Backward()
})
forwardButton.OnClick (func () {
directoryView.Forward()
})
refreshButton.OnClick (func () {
directoryView.Update()
})
controlBar.Adopt(backButton, false)
controlBar.Adopt(forwardButton, false)