summaryrefslogtreecommitdiffhomepage
path: root/logic/mappings.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-17 23:50:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-17 23:51:14 +0200
commit93d6e7a6b8d135365a0f073098ba97f905d2c550 (patch)
treeaae77f89c09521b1d2e19dd2ad00ea28299a0581 /logic/mappings.hpp
parent1a7b39fcd77ee82450d591357ea336f956d49734 (diff)
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.
Diffstat (limited to 'logic/mappings.hpp')
-rw-r--r--logic/mappings.hpp6
1 files changed, 3 insertions, 3 deletions
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()