summaryrefslogtreecommitdiffhomepage
path: root/proto-ft/ftnoir_protocol_ft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rwxr-xr-xproto-ft/ftnoir_protocol_ft.cpp4
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();
}