File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Files.App/Services/Content Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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/>
You can’t perform that action at this time.
0 commit comments