1
0
mirror of https://gitlab.cvh-server.de/skrause/flashcards.git synced 2025-12-12 07:51:38 +01:00

fix subtitle

This commit is contained in:
2025-04-04 09:49:58 +02:00
parent 48918ba4bf
commit a8ede59d44
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,6 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
[title] [title]
Adw.WindowTitle title { Adw.WindowTitle title {
title: _("Flashcards"); title: _("Flashcards");
subtitle: "Test";
} }
} }

View File

@@ -134,8 +134,9 @@ on_delete_category (__attribute__ ((unused)) GtkButton *self,
database_delete_category (win->db, win->current_category.id); database_delete_category (win->db, win->current_category.id);
gtk_list_box_unselect_all (win->topics); gtk_list_box_unselect_all (win->topics);
adw_view_stack_set_visible_child (win->main_view, win->placeholder_category);
adw_window_title_set_subtitle (ADW_WINDOW_TITLE (win->title), nullptr);
adw_view_stack_set_visible_child (win->main_view, win->placeholder_category);
gtk_widget_set_visible (GTK_WIDGET (win->add_card_button), FALSE); gtk_widget_set_visible (GTK_WIDGET (win->add_card_button), FALSE);
gtk_widget_set_visible (GTK_WIDGET (win->delete_card_button), FALSE); gtk_widget_set_visible (GTK_WIDGET (win->delete_card_button), FALSE);
gtk_widget_set_visible (GTK_WIDGET (win->delete_category_button), FALSE); gtk_widget_set_visible (GTK_WIDGET (win->delete_category_button), FALSE);