gnome-console: dont prompt when closing a tab

This commit is contained in:
Sean Buckley 2022-11-17 22:26:44 -05:00
parent 9f18c9064b
commit b095e70a7e
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,7 @@
gnome-console = super.gnome-console.overrideAttrs (prev: {
patches = prev.patches ++ [
./background.patch
./no-close-tab-prompt.patch
./tango.patch
];
});

View file

@ -0,0 +1,8 @@
--- a/src/kgx-pages.c
+++ b/src/kgx-pages.c
@@ -487,4 +487,5 @@ close_page (HdyTabView *view,
children = kgx_tab_get_children (KGX_TAB (hdy_tab_page_get_child (page)));
+ return FALSE;
if (children->len < 1) {
return FALSE; // Aka no, I dont want to block closing