forked from cromer/pamac-classic
fix #321
This commit is contained in:
parent
bad4624c3b
commit
a2bd9f9ea8
@ -1226,7 +1226,6 @@ namespace Pamac {
|
|||||||
switch (filters_stack.visible_child_name) {
|
switch (filters_stack.visible_child_name) {
|
||||||
case "categories":
|
case "categories":
|
||||||
restore_packages_sort_order ();
|
restore_packages_sort_order ();
|
||||||
origin_stack.visible_child_name = "repos";
|
|
||||||
show_sidebar ();
|
show_sidebar ();
|
||||||
set_pendings_operations ();
|
set_pendings_operations ();
|
||||||
on_categories_listbox_row_activated (categories_listbox.get_selected_row ());
|
on_categories_listbox_row_activated (categories_listbox.get_selected_row ());
|
||||||
@ -1272,21 +1271,18 @@ namespace Pamac {
|
|||||||
break;
|
break;
|
||||||
case "groups":
|
case "groups":
|
||||||
restore_packages_sort_order ();
|
restore_packages_sort_order ();
|
||||||
origin_stack.visible_child_name = "repos";
|
|
||||||
show_sidebar ();
|
show_sidebar ();
|
||||||
set_pendings_operations ();
|
set_pendings_operations ();
|
||||||
on_groups_listbox_row_activated (groups_listbox.get_selected_row ());
|
on_groups_listbox_row_activated (groups_listbox.get_selected_row ());
|
||||||
break;
|
break;
|
||||||
case "installed":
|
case "installed":
|
||||||
restore_packages_sort_order ();
|
restore_packages_sort_order ();
|
||||||
origin_stack.visible_child_name = "repos";
|
|
||||||
show_sidebar ();
|
show_sidebar ();
|
||||||
set_pendings_operations ();
|
set_pendings_operations ();
|
||||||
on_installed_listbox_row_activated (installed_listbox.get_selected_row ());
|
on_installed_listbox_row_activated (installed_listbox.get_selected_row ());
|
||||||
break;
|
break;
|
||||||
case "repos":
|
case "repos":
|
||||||
restore_packages_sort_order ();
|
restore_packages_sort_order ();
|
||||||
origin_stack.visible_child_name = "repos";
|
|
||||||
show_sidebar ();
|
show_sidebar ();
|
||||||
set_pendings_operations ();
|
set_pendings_operations ();
|
||||||
on_repos_listbox_row_activated (repos_listbox.get_selected_row ());
|
on_repos_listbox_row_activated (repos_listbox.get_selected_row ());
|
||||||
@ -1983,6 +1979,7 @@ namespace Pamac {
|
|||||||
[GtkCallback]
|
[GtkCallback]
|
||||||
void on_categories_listbox_row_activated (Gtk.ListBoxRow row) {
|
void on_categories_listbox_row_activated (Gtk.ListBoxRow row) {
|
||||||
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
||||||
|
origin_stack.visible_child_name = "repos";
|
||||||
var label = row.get_child () as Gtk.Label;
|
var label = row.get_child () as Gtk.Label;
|
||||||
string matching_cat = "";
|
string matching_cat = "";
|
||||||
string category = label.label;
|
string category = label.label;
|
||||||
@ -2017,6 +2014,7 @@ namespace Pamac {
|
|||||||
[GtkCallback]
|
[GtkCallback]
|
||||||
void on_groups_listbox_row_activated (Gtk.ListBoxRow row) {
|
void on_groups_listbox_row_activated (Gtk.ListBoxRow row) {
|
||||||
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
||||||
|
origin_stack.visible_child_name = "repos";
|
||||||
var label = row.get_child () as Gtk.Label;
|
var label = row.get_child () as Gtk.Label;
|
||||||
string group_name = label.label;
|
string group_name = label.label;
|
||||||
transaction.get_group_pkgs.begin (group_name, (obj, res) => {
|
transaction.get_group_pkgs.begin (group_name, (obj, res) => {
|
||||||
@ -2052,6 +2050,7 @@ namespace Pamac {
|
|||||||
[GtkCallback]
|
[GtkCallback]
|
||||||
void on_repos_listbox_row_activated (Gtk.ListBoxRow row) {
|
void on_repos_listbox_row_activated (Gtk.ListBoxRow row) {
|
||||||
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
this.get_window ().set_cursor (new Gdk.Cursor.for_display (Gdk.Display.get_default (), Gdk.CursorType.WATCH));
|
||||||
|
origin_stack.visible_child_name = "repos";
|
||||||
var label = row.get_child () as Gtk.Label;
|
var label = row.get_child () as Gtk.Label;
|
||||||
string repo = label.label;
|
string repo = label.label;
|
||||||
transaction.get_repo_pkgs.begin (repo, (obj, res) => {
|
transaction.get_repo_pkgs.begin (repo, (obj, res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user