diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2023-09-17 13:14:43 +0200 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2024-06-20 02:40:59 +0200 |
commit | d820c9029ad43f9315a47f58d1676dcc14f9d971 (patch) | |
tree | 666bab06855fed03be31db747df68cac0cc170d4 /main/src/ui/add_conversation/select_jid_fragment.vala | |
parent | 8be4f02723fc131d9275c1b70831f53ff4630a1a (diff) | |
download | dino-d820c9029ad43f9315a47f58d1676dcc14f9d971.tar.gz dino-d820c9029ad43f9315a47f58d1676dcc14f9d971.zip |
Simplify talking to yourself (notes) on the UI
- clicking on the menu will multiple accounts will bring up a modified
"start chat" windows
Diffstat (limited to 'main/src/ui/add_conversation/select_jid_fragment.vala')
-rw-r--r-- | main/src/ui/add_conversation/select_jid_fragment.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/ui/add_conversation/select_jid_fragment.vala b/main/src/ui/add_conversation/select_jid_fragment.vala index e0682e29..7a1dc747 100644 --- a/main/src/ui/add_conversation/select_jid_fragment.vala +++ b/main/src/ui/add_conversation/select_jid_fragment.vala @@ -28,11 +28,15 @@ public class SelectJidFragment : Gtk.Box { private ListBox list; private string[]? filter_values; - public SelectJidFragment(StreamInteractor stream_interactor, ListBox list, Gee.List<Account> accounts) { + public SelectJidFragment(StreamInteractor stream_interactor, ListBox list, Gee.List<Account> accounts, bool notes_mode = false) { this.stream_interactor = stream_interactor; this.list = list; this.accounts = accounts; + if (notes_mode) { + add_button.visible = false; + remove_button.visible = false; + } list.activate_on_single_click = false; list.vexpand = true; box.append(list); |