From c60ab38c2a3d2dafa8db9aa617a27db232e07fa2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 6 Oct 2024 17:28:17 +0300 Subject: [PATCH] use common TabItem struct for tabs HashMap --- src/app/browser/window/tab.rs | 74 ++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 32 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 99682eee..f6f3a26f 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -15,6 +15,11 @@ use gtk::{ use std::{cell::RefCell, collections::HashMap, sync::Arc}; +struct TabItem { + label: Arc