From 93d6e7a6b8d135365a0f073098ba97f905d2c550 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 17 Aug 2016 23:50:51 +0200 Subject: options: support deferred writes when saving bundles The mapping window has 13 bundles total in use. Setting them all can take up to a large fraction of a second on some windows filesystems. Do a single config write instead. --- logic/mappings.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'logic') diff --git a/logic/mappings.hpp b/logic/mappings.hpp index 942f53d2..15752624 100644 --- a/logic/mappings.hpp +++ b/logic/mappings.hpp @@ -27,10 +27,10 @@ struct Map final { } - void save() + void save(QSettings& s) { - spline_main.save(); - spline_alt.save(); + spline_main.save(s); + spline_alt.save(s); } void load() -- cgit v1.2.3