summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandomChars <random@chars.jp>2021-10-09 13:51:34 +0900
committerRandomChars <random@chars.jp>2021-10-09 13:51:34 +0900
commit6e2def8f8fc1c5d7f77c2bbb1d06a49b6891304b (patch)
tree0027e0650ee15340f3ddda443c041718e87eb958
parent8c3d987359542d331d356e23fa3de35b76b620bf (diff)
check if remote is nil on upload
-rw-r--r--image.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.go b/image.go
index 8a68d73..3c12531 100644
--- a/image.go
+++ b/image.go
@@ -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()
},
},