mirror of
https://github.com/Mikescher/kpsync.git
synced 2025-10-25 22:25:09 +02:00
kinda works, upload, download etc
This commit is contained in:
12
app/utils.go
12
app/utils.go
@@ -2,12 +2,14 @@ package app
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/cryptext"
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/exerr"
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/timeext"
|
||||
"github.com/shirou/gopsutil/v3/process"
|
||||
)
|
||||
|
||||
@@ -65,6 +67,16 @@ func (app *Application) saveState(eTag string, lastModified time.Time, checksum
|
||||
return exerr.Wrap(err, "Failed to write state file").Build()
|
||||
}
|
||||
|
||||
if app.trayItemChecksum != nil {
|
||||
app.trayItemChecksum.SetTitle(fmt.Sprintf("Checksum: %s", checksum))
|
||||
}
|
||||
if app.trayItemETag != nil {
|
||||
app.trayItemETag.SetTitle(fmt.Sprintf("ETag: %s", eTag))
|
||||
}
|
||||
if app.trayItemLastModified != nil {
|
||||
app.trayItemLastModified.SetTitle(fmt.Sprintf("LastModified: %s", lastModified.In(timeext.TimezoneBerlin).Format(time.RFC3339)))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user