aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAearil <aearil@paranoici.org>2020-02-21 18:22:27 +0100
committerfiaxh <git@lightrise.org>2020-02-21 18:23:36 +0100
commited71f61422ec0cc03427833771fe2a6a7b4b3fa1 (patch)
tree6795360772177c8b45a99939452efe99653b7d39
parent78ef31dcf57a1aa16d9b51897501b81116b22ffd (diff)
downloaddino-ed71f61422ec0cc03427833771fe2a6a7b4b3fa1.tar.gz
dino-ed71f61422ec0cc03427833771fe2a6a7b4b3fa1.zip
Add a tooltip when messages are in WONTSEND state (#550)
The warning sign and red color, while obviously synonymous with a problem, are still a bit perplexing for the user. This change add a bit of clarity. It would obviously be better to get exact cause of the problem from the different plugins. Maybe it would be possible to add a field to the Message class from libdino/src/entity/message.vala in order to record an error message for every case.
-rw-r--r--main/po/fr.po4
-rw-r--r--main/src/ui/conversation_summary/conversation_item_skeleton.vala4
2 files changed, 8 insertions, 0 deletions
diff --git a/main/po/fr.po b/main/po/fr.po
index b78beb50..0ae3be2e 100644
--- a/main/po/fr.po
+++ b/main/po/fr.po
@@ -202,6 +202,10 @@ msgstr "%d %b"
msgid "Yesterday"
msgstr "Hier"
+#: main/src/ui/conversation_summary/conversation_item_skeleton.vala:144
+msgid "Unable to send message"
+msgstr "Impossible d'envoyer le message"
+
#: main/src/ui/conversation_selector/conversation_selector_row.vala:265
#: main/src/ui/conversation_summary/conversation_item_skeleton.vala:205
#, no-c-format
diff --git a/main/src/ui/conversation_summary/conversation_item_skeleton.vala b/main/src/ui/conversation_summary/conversation_item_skeleton.vala
index 175e01ff..40816493 100644
--- a/main/src/ui/conversation_summary/conversation_item_skeleton.vala
+++ b/main/src/ui/conversation_summary/conversation_item_skeleton.vala
@@ -150,6 +150,10 @@ public class ItemMetaDataHeader : Box {
Util.force_error_color(received_image);
Util.force_error_color(encryption_image);
Util.force_error_color(time_label);
+ string error_text = _("Unable to send message");
+ received_image.tooltip_text = error_text;
+ encryption_image.tooltip_text = error_text;
+ time_label.tooltip_text = error_text;
return;
} else if (item.mark != Message.Marked.READ) {
all_read = false;