From 8df90e13115348807fcea0c1d81bca1b2ec053a0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Oct 2016 05:31:59 -0400 Subject: Save global options to options.ttl --- src/ingen/ingen.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ingen') diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp index a6ba7f41..1e407507 100644 --- a/src/ingen/ingen.cpp +++ b/src/ingen/ingen.cpp @@ -233,6 +233,11 @@ main(int argc, char** argv) if (world->engine()) world->engine()->deactivate(); + // Save configuration to restore preferences on next run + const std::string path = conf.save( + world->uri_map(), "ingen", "options.ttl", Configuration::GLOBAL); + std::cout << (fmt("Saved configuration to %1%") % path) << std::endl; + engine_interface.reset(); delete world; -- cgit v1.2.1