forked from cromer/pamac-classic
hide search aur button in manager if aur support is disabled
This commit is contained in:
parent
efff8a3167
commit
a3789094e0
@ -87,6 +87,8 @@ namespace Pamac {
|
|||||||
[GtkChild]
|
[GtkChild]
|
||||||
public Gtk.TextView files_textview;
|
public Gtk.TextView files_textview;
|
||||||
[GtkChild]
|
[GtkChild]
|
||||||
|
public Gtk.Box search_aur_box;
|
||||||
|
[GtkChild]
|
||||||
public Gtk.Switch search_aur_button;
|
public Gtk.Switch search_aur_button;
|
||||||
[GtkChild]
|
[GtkChild]
|
||||||
public Gtk.Button valid_button;
|
public Gtk.Button valid_button;
|
||||||
@ -189,6 +191,7 @@ namespace Pamac {
|
|||||||
|
|
||||||
public void enable_aur (bool enable) {
|
public void enable_aur (bool enable) {
|
||||||
search_aur_button.set_active (enable);
|
search_aur_button.set_active (enable);
|
||||||
|
search_aur_box.set_visible (enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set_buttons_sensitive (bool sensitive) {
|
public void set_buttons_sensitive (bool sensitive) {
|
||||||
|
Loading…
Reference in New Issue
Block a user