Add the "Close Tabs" feature
Also made notebooks open a container if no tabs are loaded Fixes #166
This commit is contained in:
@@ -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), "")
|
||||
|
||||
Reference in New Issue
Block a user