Skip to content

Commit

Permalink
*
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Dec 20, 2020
1 parent 7042952 commit a24eda6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions data/com.github.lainsce.quilter.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<developer_name>Lains</developer_name>
<url type="homepage">https://github.com/lainsce/quilter/</url>
<url type="bugtracker">https://github.com/lainsce/quilter/issues</url>
<url type="donation">https://patreon.com/lainsce</url>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
Expand Down Expand Up @@ -55,6 +56,14 @@
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
<releases>
<release version="2.5.3" date="2020-12-25">
<description>
<p>Release: Power Up Four</p>
<ul>
<li>Fix: Sidebar should hide completely.</li>
</ul>
</description>
</release>
<release version="2.5.2" date="2020-12-18">
<description>
<p>Release: Power Up Three</p>
Expand Down
2 changes: 1 addition & 1 deletion data/com.github.lainsce.quilter.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<summary>Show (true) or Hide (false) the statusbar</summary>
</key>
<key name="sidebar" type="b">
<default>false</default>
<default>true</default>
<summary>Show (true) or Hide (false) the sidebar</summary>
</key>
<key name="searchbar" type="b">
Expand Down
3 changes: 1 addition & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ namespace Quilter {
insert_action_group ("win", actions);

statusbar = new Widgets.StatusBar (edit_view_content.buffer);
sidebar = new Widgets.SideBar (this, edit_view_content);
sidebar.save_as.connect (() => on_save_as ());
searchbar = new Widgets.SearchBar (this);

grid = new Gtk.Grid ();
Expand Down Expand Up @@ -568,6 +566,7 @@ namespace Quilter {
}

public void show_sidebar () {
sidebar.visible = Quilter.Application.gsettings.get_boolean("sidebar");
sidebar.reveal_child = Quilter.Application.gsettings.get_boolean("sidebar");
}

Expand Down

0 comments on commit a24eda6

Please sign in to comment.