From 89fcb34719fa8a3686d0d3d7b6322d7da6432347 Mon Sep 17 00:00:00 2001 From: David Yu Yang Date: Sat, 27 Nov 2021 00:37:31 +0800 Subject: [PATCH] Switch default for hide tab bar if only one tab to disabled --- guake/data/org.guake.gschema.xml | 2 +- guake/tests/test_guake.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/guake/data/org.guake.gschema.xml b/guake/data/org.guake.gschema.xml index c1a050bce..55b78fe45 100644 --- a/guake/data/org.guake.gschema.xml +++ b/guake/data/org.guake.gschema.xml @@ -117,7 +117,7 @@ When true, the tab bar will hide when is in fullscreen - true + false Hide tab bar if there is only one tab When true, the tab bar will hide when there is only one tab diff --git a/guake/tests/test_guake.py b/guake/tests/test_guake.py index 2ae053b3c..373076f49 100644 --- a/guake/tests/test_guake.py +++ b/guake/tests/test_guake.py @@ -186,5 +186,6 @@ def test_guake_hide_tab_bar_if_one_tab(mocker, g, fs): # Set hide-tabs-if-one-tab to True mocker.patch.object(g.settings.general, "get_boolean", return_value=True) + g.settings.general.set_boolean("hide-tabs-if-one-tab", True) assert g.get_notebook().get_n_pages() == 1 assert g.get_notebook().get_property("show-tabs") is False