Merge pull request #683 from CaelusV/single-click

Add 'Single click to open' settings toggle
This commit is contained in:
Jeremy Soller 2025-03-19 16:25:37 +00:00 committed by GitHub
commit 06fd35db76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 35 additions and 0 deletions

View file

@ -1566,6 +1566,8 @@ impl App {
}
fn settings(&self) -> Element<Message> {
let tab_config = self.config.tab;
// TODO: Should dialog be updated here too?
widget::settings::view_column(vec![
widget::settings::section()
@ -1604,6 +1606,20 @@ impl App {
Message::SetTypeToSearch,
))
.into(),
widget::settings::section()
.title(fl!("other"))
.add({
widget::settings::item::builder(fl!("single-click")).toggler(
tab_config.single_click,
move |single_click| {
Message::TabConfig(TabConfig {
single_click,
..tab_config
})
},
)
})
.into(),
])
.into()
}