From e8f82fd328697542d2ee0233635b694827a5cc79 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 15 Sep 2024 20:04:52 +0200 Subject: Code cleanup: Remove broken disable CSD code --- main/src/ui/main_window.vala | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'main/src/ui/main_window.vala') diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala index ce71d413..e3110336 100644 --- a/main/src/ui/main_window.vala +++ b/main/src/ui/main_window.vala @@ -77,19 +77,10 @@ public class MainWindow : Adw.ApplicationWindow { } private void setup_headerbar() { - if (Util.use_csd()) { - conversation_list_titlebar = get_conversation_list_titlebar_csd(); - conversation_titlebar = new ConversationTitlebarCsd(); - leaflet.bind_property("folded", conversation_list_titlebar, "show-end-title-buttons", BindingFlags.SYNC_CREATE); - leaflet.bind_property("folded", conversation_titlebar.get_widget(), "show-start-title-buttons", BindingFlags.SYNC_CREATE); - } else { - Label title_label = new Label("Dino"); - HeaderBar titlebar = new HeaderBar() { title_widget=title_label, show_title_buttons=true }; - box.prepend(titlebar); - - conversation_list_titlebar = new ConversationListTitlebar(); - conversation_titlebar = new ConversationTitlebarNoCsd(); - } + conversation_list_titlebar = get_conversation_list_titlebar(); + conversation_titlebar = new ConversationTitlebar(); + leaflet.bind_property("folded", conversation_list_titlebar, "show-end-title-buttons", BindingFlags.SYNC_CREATE); + leaflet.bind_property("folded", conversation_titlebar.get_widget(), "show-start-title-buttons", BindingFlags.SYNC_CREATE); left_box.prepend(conversation_list_titlebar); right_box.prepend(conversation_titlebar.get_widget()); leaflet.notify["folded"].connect_after(() => conversation_titlebar.back_button_visible = leaflet.folded); -- cgit v1.2.3-70-g09d2