From 7c630579ae99cb26270e7f5ba7afaf287820bb76 Mon Sep 17 00:00:00 2001 From: takotori Date: Thu, 2 Nov 2023 16:51:50 +0100 Subject: [PATCH] Add separator in sidebar --- src/components/window/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/window/window.rs b/src/components/window/window.rs index 249e1d0..ec8f97d 100644 --- a/src/components/window/window.rs +++ b/src/components/window/window.rs @@ -2,7 +2,7 @@ use adw::BreakpointCondition; use adw::glib::clone; use adw::subclass::prelude::ObjectSubclassIsExt; use glib::Object; -use gtk::{Application, gio, glib}; +use gtk::{Application, gio, glib, Orientation}; use gtk::prelude::*; use crate::components::window::handleSidebarClick::{ @@ -176,6 +176,7 @@ impl Window { for subEntry in subEntries { selfImp.resetSidebarList.append(subEntry); } + selfImp.resetSidebarList.append(>k::Separator::new(Orientation::Horizontal)) } }