Skip to content

Commit

Permalink
Switch default for hide tab bar if only one tab to disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidy22 committed Dec 1, 2021
1 parent 02ccc62 commit 3e886fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guake/data/org.guake.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<description>When true, the tab bar will hide when is in fullscreen</description>
</key>
<key name="hide-tabs-if-one-tab" type="b">
<default>true</default>
<default>false</default>
<summary>Hide tab bar if there is only one tab</summary>
<description>When true, the tab bar will hide when there is only one tab</description>
</key>
Expand Down
3 changes: 2 additions & 1 deletion guake/tests/test_guake.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def test_guake_save_tabs_and_restore(mocker, g, fs):
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

0 comments on commit 3e886fb

Please sign in to comment.