Commit 353ca3f0 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: constraint debug

Only show constraint warning when running in debug mode

Change-Id: I40066e00dfe711819d448f61a337ff012cf5d76f
parent edae0819
......@@ -81,7 +81,14 @@ std::unique_ptr<lrc::api::Lrc> lrc;
updateItem.hidden = true;
#endif
#ifndef NDEBUG
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints"];
#else
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints"];
#endif
// [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints"];
// [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSConstraintBasedLayoutLogUnsatisfiable"];
// [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"__NSConstraintBasedLayoutLogUnsatisfiable"];
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment