diff options
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r-- | src/Configuration.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 3c4b5f0..8653591 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -38,6 +38,7 @@ Configuration::Configuration() , _window_size(640, 480) , _zoom(1.0) , _font_size(12.0) + , _show_toolbar(true) { _port_colors[JACK_AUDIO] = _default_port_colors[JACK_AUDIO] = 0x244678FF; _port_colors[JACK_MIDI] = _default_port_colors[JACK_MIDI] = 0x960909FF; @@ -164,7 +165,7 @@ Configuration::load() while (file.good()) { std::string key; if (file.peek() == '\"') { - /* Old versions ommitted the module_position key and listed + /* Old versions omitted the module_position key and listed positions starting with module name in quotes. */ key = "module_position"; } else { @@ -179,6 +180,8 @@ Configuration::load() file >> _zoom; } else if (key == "font_size") { file >> _font_size; + } else if (key == "show_toolbar") { + file >> _show_toolbar; } else if (key == "port_color") { std::string type_name; uint32_t rgba; @@ -275,6 +278,7 @@ Configuration::save() file << "window_size " << _window_size.x << " " << _window_size.y << std::endl; file << "zoom_level " << _zoom << std::endl; file << "font_size " << _font_size << std::endl; + file << "show_toolbar " << _show_toolbar << std::endl; file << std::hex << std::uppercase; for (int i = 0; i < N_PORT_TYPES; ++i) { |