aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2023-01-16 17:37:53 +0100
committerfiaxh <git@lightrise.org>2023-01-16 18:37:11 +0100
commit7da79864b384c9370a5937d480230e771834d91a (patch)
treeb14e712da9d764dc7e3de5812aa39bc0d86ae08f /main
parent05289e0b4dc9bc076955e27b30b386cb7f0604c7 (diff)
downloaddino-7da79864b384c9370a5937d480230e771834d91a.tar.gz
dino-7da79864b384c9370a5937d480230e771834d91a.zip
Fix pin setting switch displaying
Diffstat (limited to 'main')
-rw-r--r--main/src/ui/contact_details/settings_provider.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/contact_details/settings_provider.vala b/main/src/ui/contact_details/settings_provider.vala
index 6c43dbfd..8121e5b1 100644
--- a/main/src/ui/contact_details/settings_provider.vala
+++ b/main/src/ui/contact_details/settings_provider.vala
@@ -50,7 +50,7 @@ public class SettingsProvider : Plugins.ContactDetailsProvider, Object {
combobox.changed.connect(() => { conversation.notify_setting = get_notify_setting(combobox.active_id); } );
}
- Switch pinned_switch = new Switch();
+ Switch pinned_switch = new Switch() { valign=Align.CENTER };
string category = conversation.type_ == Conversation.Type.GROUPCHAT ? DETAILS_HEADLINE_ROOM : DETAILS_HEADLINE_CHAT;
contact_details.add(category, _("Pin conversation"), _("Pins the conversation to the top of the conversation list"), pinned_switch);
pinned_switch.state = conversation.pinned != 0;