Browse Source

Indentation

merge-requests/365/head
Physiix 9 years ago
parent
commit
b0cbd9b00f
  1. 6
      src/notebook.cc
  2. 2
      src/notebook.h

6
src/notebook.cc

@ -605,9 +605,9 @@ void Notebook::toggle_split() {
split=!split; split=!split;
} }
void Notebook::toggle_tabs() { void Notebook::toggle_tabs() {
Notebook::tabs_visible =! Notebook::tabs_visible; Notebook::tabs_visible=!Notebook::tabs_visible;
//Show / Hide tabs for each notbook. //Show / Hide tabs for each notebook.
for(auto& notebook : Notebook::notebooks) for(auto &notebook : Notebook::notebooks)
notebook.set_show_tabs(Notebook::tabs_visible); notebook.set_show_tabs(Notebook::tabs_visible);
} }

2
src/notebook.h

@ -81,7 +81,7 @@ private:
std::vector<std::unique_ptr<TabLabel> > tab_labels; std::vector<std::unique_ptr<TabLabel> > tab_labels;
bool split=false; bool split=false;
bool tabs_visible = true; //Flag set to true when the tabs are visible. bool tabs_visible=true; //Flag set to true when the tabs are visible.
size_t last_index=-1; size_t last_index=-1;
void set_current_view(Source::View *view); void set_current_view(Source::View *view);

Loading…
Cancel
Save