Skip to content

Commit

Permalink
Hide what's new elements
Browse files Browse the repository at this point in the history
* Hide top bar
* Hide search bar
  • Loading branch information
duk3luk3 committed Dec 18, 2016
1 parent 046afea commit e8e647f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Fix file permissions (#521, thanks @muellni)
* Check for WMI service needed by uid (#523, thanks @muellni)
* Build improvements (#531)
* Fix What's New Tab displaying correct page (thanks @downlord)


0.11.64
Expand Down
7 changes: 7 additions & 0 deletions src/client/_clientwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,13 @@ def handle_welcome(self, message):
fa.upnp.createPortMapping(self.socket.localAddress().toString(), self.gamePort, "UDP")

# update what's new page
self.whatNewsView.loadFinished.connect(lambda x: self.whatNewsView.page().mainFrame()
.evaluateJavaScript(
"""
document.getElementById('header').style.visibility='hidden';
document.getElementById('blogTerm').parentElement.parentElement.style.visibility='hidden';
"""
))
self.whatNewsView.setUrl(QtCore.QUrl("https://www.faforever.com/news"))

self.updateOptions()
Expand Down

0 comments on commit e8e647f

Please sign in to comment.