forked from cromer/pamac-classic
fix #89
This commit is contained in:
parent
00553e5e58
commit
2200d318fc
@ -137,6 +137,14 @@ namespace Pamac {
|
|||||||
public ManagerWindow (Gtk.Application application) {
|
public ManagerWindow (Gtk.Application application) {
|
||||||
Object (application: application);
|
Object (application: application);
|
||||||
|
|
||||||
|
support_aur (false, false);
|
||||||
|
|
||||||
|
Timeout.add (100, populate_window);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool populate_window () {
|
||||||
|
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
||||||
|
|
||||||
right_click_menu = new Gtk.Menu ();
|
right_click_menu = new Gtk.Menu ();
|
||||||
deselect_item = new Gtk.MenuItem.with_label (dgettext (null, "Deselect"));
|
deselect_item = new Gtk.MenuItem.with_label (dgettext (null, "Deselect"));
|
||||||
deselect_item.activate.connect (on_deselect_item_activate);
|
deselect_item.activate.connect (on_deselect_item_activate);
|
||||||
@ -194,9 +202,7 @@ namespace Pamac {
|
|||||||
refresh_handle ();
|
refresh_handle ();
|
||||||
|
|
||||||
unowned Alpm.Package? pkg = Alpm.find_satisfier (alpm_config.handle.localdb.pkgcache, "yaourt");
|
unowned Alpm.Package? pkg = Alpm.find_satisfier (alpm_config.handle.localdb.pkgcache, "yaourt");
|
||||||
if (pkg == null) {
|
if (pkg != null) {
|
||||||
support_aur (false, false);
|
|
||||||
} else {
|
|
||||||
support_aur (transaction.pamac_config.enable_aur, transaction.pamac_config.search_aur);
|
support_aur (transaction.pamac_config.enable_aur, transaction.pamac_config.search_aur);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,6 +215,8 @@ namespace Pamac {
|
|||||||
|
|
||||||
update_lists ();
|
update_lists ();
|
||||||
show_default_pkgs ();
|
show_default_pkgs ();
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_write_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon,
|
void on_write_pamac_config_finished (bool recurse, uint64 refresh_period, bool no_update_hide_icon,
|
||||||
|
@ -51,6 +51,17 @@ namespace Pamac {
|
|||||||
public UpdaterWindow (Gtk.Application application) {
|
public UpdaterWindow (Gtk.Application application) {
|
||||||
Object (application: application);
|
Object (application: application);
|
||||||
|
|
||||||
|
bottom_label.set_visible (false);
|
||||||
|
apply_button.set_sensitive (false);
|
||||||
|
notebook.set_show_tabs (false);
|
||||||
|
aur_scrolledwindow.set_visible (false);
|
||||||
|
|
||||||
|
Timeout.add (100, populate_window);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool populate_window () {
|
||||||
|
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
||||||
|
|
||||||
repos_updates_list = new Gtk.ListStore (3, typeof (bool), typeof (string), typeof (string));
|
repos_updates_list = new Gtk.ListStore (3, typeof (bool), typeof (string), typeof (string));
|
||||||
repos_updates_treeview.set_model (repos_updates_list);
|
repos_updates_treeview.set_model (repos_updates_list);
|
||||||
aur_updates_list = new Gtk.ListStore (2, typeof (bool), typeof (string));
|
aur_updates_list = new Gtk.ListStore (2, typeof (bool), typeof (string));
|
||||||
@ -62,13 +73,9 @@ namespace Pamac {
|
|||||||
|
|
||||||
transaction.daemon.get_updates_finished.connect (on_get_updates_finished);
|
transaction.daemon.get_updates_finished.connect (on_get_updates_finished);
|
||||||
|
|
||||||
bottom_label.set_visible (false);
|
|
||||||
apply_button.set_sensitive (false);
|
|
||||||
|
|
||||||
notebook.set_show_tabs (false);
|
|
||||||
aur_scrolledwindow.set_visible (false);
|
|
||||||
|
|
||||||
on_refresh_button_clicked ();
|
on_refresh_button_clicked ();
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void set_apply_button_sensitive () {
|
public void set_apply_button_sensitive () {
|
||||||
|
Loading…
Reference in New Issue
Block a user