summaryrefslogtreecommitdiffhomepage
path: root/opentrack/mappings.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-28 13:49:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-28 13:49:59 +0200
commitf3708cf6a85f4447e2333642453a4a0232986942 (patch)
tree04483942f37f22e6551f3d1488f2beece9123708 /opentrack/mappings.hpp
parente07a72493f6145b55efb305c955032ffd73e94c3 (diff)
save axis opts, not just spline control points
This caused the "invert axis got switched on" bug.
Diffstat (limited to 'opentrack/mappings.hpp')
-rw-r--r--opentrack/mappings.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/opentrack/mappings.hpp b/opentrack/mappings.hpp
index 85d9900c..2391efd1 100644
--- a/opentrack/mappings.hpp
+++ b/opentrack/mappings.hpp
@@ -62,6 +62,7 @@ public:
{
axes[i].curve.loadSettings(*iniFile, axes[i].name1);
axes[i].curveAlt.loadSettings(*iniFile, axes[i].name2);
+ axes[i].opts.b->reload();
}
}
void save_mappings()
@@ -72,6 +73,7 @@ public:
{
axes[i].curve.saveSettings(*iniFile, axes[i].name1);
axes[i].curveAlt.saveSettings(*iniFile, axes[i].name2);
+ axes[i].opts.b->save();
}
}
@@ -81,6 +83,7 @@ public:
{
axes[i].curve.invalidate_unsaved_settings();
axes[i].curveAlt.invalidate_unsaved_settings();
+ axes[i].opts.b->reload();
}
}
};