aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-10-12 16:27:56 +0200
committerfiaxh <git@lightrise.org>2021-10-12 19:43:57 +0200
commit237081e5735b463b7528f4f3f52978eaf1bfeeca (patch)
tree49d9eaa3156153806fa88c0b7679fd2080d9bd2c /main
parente8c162eae3827a4f2abdf97b1e42f7398744c10e (diff)
downloaddino-237081e5735b463b7528f4f3f52978eaf1bfeeca.tar.gz
dino-237081e5735b463b7528f4f3f52978eaf1bfeeca.zip
Fix compiler warnings ('Switch does not handle .. of enum ..')
Diffstat (limited to 'main')
-rw-r--r--main/src/ui/conversation_content_view/file_widget.vala3
-rw-r--r--main/src/ui/notifier_freedesktop.vala2
2 files changed, 5 insertions, 0 deletions
diff --git a/main/src/ui/conversation_content_view/file_widget.vala b/main/src/ui/conversation_content_view/file_widget.vala
index 7d77ba11..5766ec25 100644
--- a/main/src/ui/conversation_content_view/file_widget.vala
+++ b/main/src/ui/conversation_content_view/file_widget.vala
@@ -175,6 +175,9 @@ public class FileDefaultWidgetController : Object {
assert(stream_interactor != null && file_transfer != null);
stream_interactor.get_module(FileManager.IDENTITY).download_file.begin(file_transfer);
break;
+ default:
+ // Clicking doesn't do anything in FAILED and IN_PROGRESS states
+ break;
}
return false;
}
diff --git a/main/src/ui/notifier_freedesktop.vala b/main/src/ui/notifier_freedesktop.vala
index 634f331b..48313be3 100644
--- a/main/src/ui/notifier_freedesktop.vala
+++ b/main/src/ui/notifier_freedesktop.vala
@@ -200,6 +200,8 @@ public class Dino.Ui.FreeDesktopNotifier : NotificationProvider, Object {
case ConnectionManager.ConnectionError.Source.TLS:
body = _("Invalid TLS certificate");
break;
+ default:
+ break;
}
HashTable<string, Variant> hash_table = new HashTable<string, Variant>(null, null);