mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
gnome-console: dont prompt when closing a tab
This commit is contained in:
parent
9f18c9064b
commit
b095e70a7e
2 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
gnome-console = super.gnome-console.overrideAttrs (prev: {
|
||||
patches = prev.patches ++ [
|
||||
./background.patch
|
||||
./no-close-tab-prompt.patch
|
||||
./tango.patch
|
||||
];
|
||||
});
|
||||
|
|
8
modules/gnome-console-tweaks/no-close-tab-prompt.patch
Normal file
8
modules/gnome-console-tweaks/no-close-tab-prompt.patch
Normal 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 don’t want to block closing
|
Loading…
Reference in a new issue