Add the "Close Tabs" feature

Also made notebooks open a container if no tabs are loaded

Fixes #166
This commit is contained in:
Rasmus Karlsson
2017-12-28 18:15:27 +01:00
parent 091e7b9dbe
commit caddb2c778
6 changed files with 37 additions and 21 deletions
+3 -2
View File
@@ -14,9 +14,10 @@
namespace chatterino {
namespace widgets {
NotebookTab::NotebookTab(Notebook *_notebook, const std::string &settingPrefix)
NotebookTab::NotebookTab(Notebook *_notebook, const std::string &_uuid)
: BaseWidget(_notebook)
, settingRoot(fS("{}/tab", settingPrefix))
, uuid(_uuid)
, settingRoot(fS("/containers/{}/tab", this->uuid))
, positionChangedAnimation(this, "pos")
, notebook(_notebook)
, title(fS("{}/title", this->settingRoot), "")