diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2023-10-08 17:45:16 +0200 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2024-06-22 00:29:45 +0200 |
commit | 01a547ef18a52064cc85d1050c60f37bb50bd028 (patch) | |
tree | ece37e86cdefe6a149277f9a5e0c37625231520d /main/src/view_model | |
parent | 8b15417e0f6e90ef510ee70df7d32dbb7ce79393 (diff) | |
download | dino-01a547ef18a52064cc85d1050c60f37bb50bd028.tar.gz dino-01a547ef18a52064cc85d1050c60f37bb50bd028.zip |
Allow blocking entire domain from conversation detailsallow-blocking-entire-domain
- the block domain option is in a drop down of the block button
- when blocking the domain, the "Blocked domain" button appears
and block button disappears and vice versa.
Diffstat (limited to 'main/src/view_model')
-rw-r--r-- | main/src/view_model/conversation_details.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/view_model/conversation_details.vala b/main/src/view_model/conversation_details.vala index 15bf7535..cf765da6 100644 --- a/main/src/view_model/conversation_details.vala +++ b/main/src/view_model/conversation_details.vala @@ -7,6 +7,7 @@ using Gtk; public class Dino.Ui.ViewModel.ConversationDetails : Object { public signal void pin_changed(); public signal void block_changed(); + public signal void domain_block_changed(); public signal void notification_flipped(); public signal void notification_changed(NotificationSetting setting); @@ -32,6 +33,7 @@ public class Dino.Ui.ViewModel.ConversationDetails : Object { public bool show_blocked { get; set; } public bool blocked { get; set; } + public bool domain_blocked { get; set; } public GLib.ListStore preferences_rows = new GLib.ListStore(typeof(PreferencesRow.Any)); public GLib.ListStore about_rows = new GLib.ListStore(typeof(PreferencesRow.Any)); @@ -46,4 +48,5 @@ public class Dino.Ui.Model.ConversationDetails : Object { public DataForms.DataForm? data_form { get; set; } public string? data_form_bak; public bool blocked { get; set; } -}
\ No newline at end of file + public bool domain_blocked { get; set; } +} |