From d9c59e88cd521f5dee4f39c46fad4c1835591199 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 May 2022 23:08:50 -0400 Subject: Fix initial display with no configuration file --- NEWS | 3 ++- src/Configuration.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6c8678a..161d33c 100644 --- a/NEWS +++ b/NEWS @@ -5,8 +5,9 @@ patchage (1.0.5) unstable; * Save "human names" setting in configuration * Show latency in toolbar with 2 decimal places * Switch to C++14 + * Fix initial display with no configuration file - -- David Robillard Tue, 11 May 2021 17:37:26 +0000 + -- David Robillard Fri, 27 May 2022 03:08:31 +0000 patchage (1.0.4) stable; diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 42217d4..e498487 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -41,8 +41,10 @@ static const char* const port_type_names[N_PORT_TYPES] = {"JACK_AUDIO", Configuration::Configuration(std::function on_change) : _on_change(std::move(on_change)) { + std::get(_settings).value = 12.0f; std::get(_settings).value = Coord{0.0, 0.0}; std::get(_settings).value = Coord{960.0, 540.0}; + std::get(_settings).value = 1.0f; #ifdef PATCHAGE_USE_LIGHT_THEME _port_colors[static_cast(PortType::jack_audio)] = -- cgit v1.2.1