mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-21 22:44:23 +00:00
Fix pin setting switch displaying
This commit is contained in:
parent
05289e0b4d
commit
7da79864b3
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public class SettingsProvider : Plugins.ContactDetailsProvider, Object {
|
||||||
combobox.changed.connect(() => { conversation.notify_setting = get_notify_setting(combobox.active_id); } );
|
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;
|
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);
|
contact_details.add(category, _("Pin conversation"), _("Pins the conversation to the top of the conversation list"), pinned_switch);
|
||||||
pinned_switch.state = conversation.pinned != 0;
|
pinned_switch.state = conversation.pinned != 0;
|
||||||
|
|
Loading…
Reference in a new issue