From 7da79864b384c9370a5937d480230e771834d91a Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 16 Jan 2023 17:37:53 +0100 Subject: Fix pin setting switch displaying --- main/src/ui/contact_details/settings_provider.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui') 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; -- cgit v1.2.3-70-g09d2