diff options
author | RandomChars <random@chars.jp> | 2021-10-09 13:51:34 +0900 |
---|---|---|
committer | RandomChars <random@chars.jp> | 2021-10-09 13:51:34 +0900 |
commit | 6e2def8f8fc1c5d7f77c2bbb1d06a49b6891304b (patch) | |
tree | 0027e0650ee15340f3ddda443c041718e87eb958 | |
parent | 8c3d987359542d331d356e23fa3de35b76b620bf (diff) |
check if remote is nil on upload
-rw-r--r-- | image.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,10 @@ var imageMenu = &fyne.MenuItem{ { Label: "Upload", Action: func() { + if remote == nil { + go dialog.ShowInformation("Not connected", "Not connected to a remote.", window) + return + } go fileSelectUpload() }, }, |