diff --git a/src/menu/menu-applet-window.cpp b/src/menu/menu-applet-window.cpp index 7cc9750423ca7f1eb7d2832eac2071561c9833d1..81397a45920361829c65030f4ed76990bb716bdf 100644 --- a/src/menu/menu-applet-window.cpp +++ b/src/menu/menu-applet-window.cpp @@ -216,6 +216,7 @@ void MenuAppletWindow::init_ui() builder->get_widget("menu-sider-container", sider_box); builder->get_widget("menu-view-stack-switcher", menu_view_stack_switcher); builder->get_widget("menu-view-stack", menu_view_stack); + builder->get_widget("all-apps-view", all_app_view); builder->get_widget("apps-list-stack", apps_list_stack); builder->get_widget("search-box", search_box); @@ -492,7 +493,7 @@ void MenuAppletWindow::switch_to_category_overview(const std::string &selected_c true)); category_list_box->add(*item); } - all_apps_scrolled->set_visible(false); + all_app_view->set_visible(false); category_list_scrolled->show_all(); if (selected_item) @@ -536,6 +537,7 @@ void MenuAppletWindow::switch_to_apps_overview(double position, bool animation) all_apps_scrolled->show_all(); menu_view_stack->set_visible_child(ALL_APPS_VIEW); + all_app_view->set_visible(true); apps_list_stack->set_visible_child(APPS_LIST_PAGE); if (position >= 0) { @@ -550,6 +552,7 @@ bool MenuAppletWindow::on_map_event(GdkEventAny *any_event) // Fix #53981 category_list_scrolled->set_visible(false); + all_app_view->set_visible(true); all_apps_scrolled->set_visible(true); on_search_stop(); diff --git a/src/menu/menu-applet-window.h b/src/menu/menu-applet-window.h index c9e9ad6010b6d356b73b059c2d1c849974775562..7a4d66d765e4fc541079574916e4df22768a976a 100644 --- a/src/menu/menu-applet-window.h +++ b/src/menu/menu-applet-window.h @@ -178,6 +178,7 @@ private: Gtk::SearchEntry *search_entry; Gtk::StackSwitcher *menu_view_stack_switcher; Gtk::Stack *menu_view_stack; + Gtk::Box *all_app_view; Gtk::Stack *apps_list_stack; Gtk::Box *all_apps_page; /* */ Gtk::Box *compact_favorites_view; /* 紧凑模式下的收藏夹页面 */