From b095e70a7e691395c3ee6838bcfb0696953eacf1 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 17 Nov 2022 22:26:44 -0500 Subject: [PATCH] gnome-console: dont prompt when closing a tab --- modules/gnome-console-tweaks/default.nix | 1 + modules/gnome-console-tweaks/no-close-tab-prompt.patch | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 modules/gnome-console-tweaks/no-close-tab-prompt.patch diff --git a/modules/gnome-console-tweaks/default.nix b/modules/gnome-console-tweaks/default.nix index 2aeaf3d..3169c8d 100644 --- a/modules/gnome-console-tweaks/default.nix +++ b/modules/gnome-console-tweaks/default.nix @@ -4,6 +4,7 @@ gnome-console = super.gnome-console.overrideAttrs (prev: { patches = prev.patches ++ [ ./background.patch + ./no-close-tab-prompt.patch ./tango.patch ]; }); diff --git a/modules/gnome-console-tweaks/no-close-tab-prompt.patch b/modules/gnome-console-tweaks/no-close-tab-prompt.patch new file mode 100644 index 0000000..79019e1 --- /dev/null +++ b/modules/gnome-console-tweaks/no-close-tab-prompt.patch @@ -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