Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorJeffB42 <10328858+JeffB42@users.noreply.github.com>2021-03-14 21:12:09 +0300
committerJeffB42 <10328858+JeffB42@users.noreply.github.com>2021-03-14 21:12:09 +0300
commitb3f7a7d1251ef3c064b8b4ef474854a45b6edb82 (patch)
tree5b0a5e8d9b01725883e8eeb9fb72a8e5c4eece84 /ui
parentb9a00066a7f46c96ad9572fe23d45e9761b8df95 (diff)
reverted click handler b/c it needs 'location'
Diffstat (limited to 'ui')
-rwxr-xr-xui/FilesPanel.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/ui/FilesPanel.go b/ui/FilesPanel.go
index a4cda3c..ba93077 100755
--- a/ui/FilesPanel.go
+++ b/ui/FilesPanel.go
@@ -245,22 +245,21 @@ func (this *filesPanel) createRootLocationButton(location dataModels.Location) *
topBox.Add(actionBox)
rootLocationButton, _ := gtk.ButtonNew()
- rootLocationButton.Connect("clicked", this.handleRootLocationClick)
- rootLocationButton.Add(topBox)
+ rootLocationButton.Connect("clicked", func() {
+ this.sdNotify(daemon.SdNotifyWatchdog)
- return rootLocationButton
-}
+ this.locationHistory = utils.LocationHistory {
+ Locations: []dataModels.Location{location},
+ }
-func (this *filesPanel) handleRootLocationClick() {
- this.sdNotify(daemon.SdNotifyWatchdog)
+ this.doLoadFiles()
- this.locationHistory = utils.LocationHistory {
- Locations: []dataModels.Location{location},
- }
+ this.sdNotify(daemon.SdNotifyReady)
+ })
- this.doLoadFiles()
+ rootLocationButton.Add(topBox)
- this.sdNotify(daemon.SdNotifyReady)
+ return rootLocationButton
}
func (this *filesPanel) addSortedFiles(sortedFiles []*dataModels.FileResponse) {