From 926b2b16c8df2e7c54de10780860176d2277e9b1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 6 Apr 2016 16:25:05 +0200 Subject: 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 --- proto-ft/ftnoir_protocol_ft.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto-ft/ftnoir_protocol_ft.cpp') 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(&value::valueChanged), + [] (bool flag) -> void { runonce_check->set_enabled(flag); }); runonce_check->try_runonce(); } -- cgit v1.2.3