Skip to content

Commit

Permalink
1.3.0 - Working stylesheet changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Galardi committed Sep 28, 2017
1 parent 2c55ced commit 80dcbb6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Widgets/WebView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ namespace Quilter {
settingsweb.enable_page_cache = false;
web_context.set_cache_model(WebKit.CacheModel.DOCUMENT_VIEWER);

refresh_page ();
update_html_view ();
var settings = AppSettings.get_default ();
settings.changed.connect (refresh_page);
settings.changed.connect (update_html_view);
}

protected override bool context_menu (
Expand All @@ -57,10 +57,6 @@ namespace Quilter {
}
}

public void refresh_page () {
set_stylesheet ();
}

/**
* Process the frontmatter of a markdown document, if it exists.
* Returns the frontmatter data and strips the frontmatter from the markdown doc.
Expand Down

0 comments on commit 80dcbb6

Please sign in to comment.