Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 311c37a

Browse files
committed
fixed dimming effect getting stuck in black sometimes
1 parent 16bb5ee commit 311c37a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UI/MainWindow/MainWindow.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public MainWindow(SplashScreen sc)
127127
DisableServerAnim = (Storyboard)Resources["DisableServerAnim"];
128128
DimmMainWindowEffect = (Storyboard)Resources["DimmMainWindow"];
129129
RestoreMainWindowEffect = (Storyboard)Resources["RestoreMainWindow"];
130+
RestoreMainWindowEffect.Completed += delegate
131+
{
132+
BlendEffectPlane.Fill = (SolidColorBrush)FindResource("AccentColorBrush4");
133+
};
130134

131135
// Start OB
132136
ChangeObjectBrowserToDirectory(Program.OptionsObject.Program_ObjectBrowserDirectory);
@@ -580,10 +584,6 @@ public void DimmMainWindow()
580584
public void RestoreMainWindow()
581585
{
582586
RestoreMainWindowEffect.Begin();
583-
RestoreMainWindowEffect.Completed += delegate
584-
{
585-
BlendEffectPlane.Fill = (SolidColorBrush)FindResource("AccentColorBrush4");
586-
};
587587
}
588588

589589
public void EvaluateRTL()

0 commit comments

Comments
 (0)