Skip to content

Commit 7f7e660

Browse files
committed
CQ: Turn off RealTime feature
1 parent 2a3eac4 commit 7f7e660

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Files.App/Services/Content/RealTimeLayoutService.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,37 @@ public void UpdateCulture(CultureInfo culture)
3131

3232
CultureInfo.DefaultThreadCurrentUICulture = culture;
3333
CultureInfo.CurrentUICulture = culture;
34-
34+
// TODO: Remove this after work RealTime string resources change work
35+
#if DEBUG
3536
if (tmp != FlowDirection)
3637
InvokeCallbacks();
38+
#endif
3739
}
3840

3941
/// <inheritdoc/>
4042
public void AddCallback(Window target, Action callback)
4143
{
44+
// TODO: Remove this after work RealTime string resources change work
45+
#if DEBUG
4246
var weakReference = new WeakReference<object>(target);
4347
_callbacks.Add((weakReference, callback));
4448

4549
if (!IsExistTarget(target))
4650
target.Closed += (sender, args) => RemoveCallback(target);
51+
#endif
4752
}
4853

4954
/// <inheritdoc/>
5055
public void AddCallback(FrameworkElement target, Action callback)
5156
{
57+
// TODO: Remove this after work RealTime string resources change work
58+
#if DEBUG
5259
var weakReference = new WeakReference<object>(target);
5360
_callbacks.Add((weakReference, callback));
5461

5562
if (!IsExistTarget(target))
5663
target.Unloaded += (sender, args) => RemoveCallback(target);
64+
#endif
5765
}
5866

5967
/// <inheritdoc/>

0 commit comments

Comments
 (0)