diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-04-06 16:25:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-04-06 16:25:05 +0200 |
commit | 926b2b16c8df2e7c54de10780860176d2277e9b1 (patch) | |
tree | 3424a07f6ef6e226a59f4006777c6d6bd620fc05 /proto-ft/ftnoir_protocol_ft.cpp | |
parent | 5ac80f5ed0dfff50af05d064401c37f88a28f894 (diff) |
proto/ft: make clear registry path on quit optional
Make clearing the dll path optional, defaulting to false. See previous
commit.
It has a side effect of games started before opentrack not seeing any
dll path, and loading nothing. That is, opentrack only functions when
tracking is started before a game is started.
Issue: #332
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rwxr-xr-x | proto-ft/ftnoir_protocol_ft.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 134ffc53..121da494 100755 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -16,6 +16,10 @@ FTNoIR_Protocol::FTNoIR_Protocol() : viewsStop(nullptr), intGameID(0) { + runonce_check->set_enabled(s.close_protocols_on_exit); + QObject::connect(&s.close_protocols_on_exit, + static_cast<void (base_value::*)(bool)>(&value<bool>::valueChanged), + [] (bool flag) -> void { runonce_check->set_enabled(flag); }); runonce_check->try_runonce(); } |