preferences: Set search-enabled=False

In general we don't use this when there are so few preferences.
This commit is contained in:
Maximiliano Sandoval 2025-01-01 09:05:40 +01:00 committed by Bilal Elmoussaoui
parent f9aaae6863
commit 2721b9145d
2 changed files with 0 additions and 33 deletions

View file

@ -9,7 +9,6 @@
<template class="PreferencesWindow" parent="AdwPreferencesDialog">
<property name="content-width">550</property>
<property name="content-height">570</property>
<property name="search-enabled">True</property>
<child>
<object class="AdwPreferencesPage">
<property name="icon-name">applications-system-symbolic</property>

View file

@ -555,38 +555,6 @@ impl PreferencesWindow {
fn setup_actions(&self) {
let imp = self.imp();
imp.camera_page.connect_map(clone!(
#[weak(rename_to = win)]
self,
move |_| {
win.set_search_enabled(false);
}
));
imp.camera_page.connect_unmap(clone!(
#[weak(rename_to = win)]
self,
move |_| {
win.set_search_enabled(true);
}
));
imp.password_page.connect_map(clone!(
#[weak(rename_to = win)]
self,
move |_| {
win.set_search_enabled(false);
}
));
imp.password_page.connect_unmap(clone!(
#[weak(rename_to = win)]
self,
move |_| {
win.set_search_enabled(true);
}
));
let show_camera_page = gio::ActionEntry::builder("show_camera_page")
.activate(clone!(
#[weak(rename_to = win)]