Skip to content

Commit 1c1bad0

Browse files
committed
Cleanup Code
1 parent 8686308 commit 1c1bad0

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

Flow.Launcher/Resources/Controls/InfoBar.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</Grid.ColumnDefinitions>
2929
<StackPanel Grid.Column="0" Orientation="Horizontal">
3030
<Border
31-
x:Name="Part_IconBorder"
31+
x:Name="PART_IconBorder"
3232
Width="16"
3333
Height="16"
3434
Margin="0 0 12 0"

Flow.Launcher/Resources/Controls/InfoBar.xaml.cs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public string Message
4949
set
5050
{
5151
SetValue(MessageProperty, value);
52-
UpdateMessageVisibility(); // Visibility update when change Message
5352
}
5453
}
5554

@@ -128,13 +127,13 @@ private void UpdateIconAlignmentAndMargin()
128127
{
129128
if (Length == InfoBarLength.Short)
130129
{
131-
Part_IconBorder.VerticalAlignment = VerticalAlignment.Center;
132-
Part_IconBorder.Margin = new Thickness(0, 0, 12, 0);
130+
PART_IconBorder.VerticalAlignment = VerticalAlignment.Center;
131+
PART_IconBorder.Margin = new Thickness(0, 0, 12, 0);
133132
}
134133
else
135134
{
136-
Part_IconBorder.VerticalAlignment = VerticalAlignment.Top;
137-
Part_IconBorder.Margin = new Thickness(0, 2, 12, 0);
135+
PART_IconBorder.VerticalAlignment = VerticalAlignment.Top;
136+
PART_IconBorder.Margin = new Thickness(0, 2, 12, 0);
138137
}
139138
}
140139

@@ -158,22 +157,22 @@ private void UpdateStyle()
158157
{
159158
case InfoBarType.Info:
160159
PART_Border.Background = (Brush)FindResource("InfoBarInfoBG");
161-
Part_IconBorder.Background = (Brush)FindResource("InfoBarInfoIcon");
160+
PART_IconBorder.Background = (Brush)FindResource("InfoBarInfoIcon");
162161
PART_Icon.Glyph = "\xF13F";
163162
break;
164163
case InfoBarType.Success:
165164
PART_Border.Background = (Brush)FindResource("InfoBarSuccessBG");
166-
Part_IconBorder.Background = (Brush)FindResource("InfoBarSuccessIcon");
165+
PART_IconBorder.Background = (Brush)FindResource("InfoBarSuccessIcon");
167166
PART_Icon.Glyph = "\xF13E";
168167
break;
169168
case InfoBarType.Warning:
170169
PART_Border.Background = (Brush)FindResource("InfoBarWarningBG");
171-
Part_IconBorder.Background = (Brush)FindResource("InfoBarWarningIcon");
170+
PART_IconBorder.Background = (Brush)FindResource("InfoBarWarningIcon");
172171
PART_Icon.Glyph = "\xF13C";
173172
break;
174173
case InfoBarType.Error:
175174
PART_Border.Background = (Brush)FindResource("InfoBarErrorBG");
176-
Part_IconBorder.Background = (Brush)FindResource("InfoBarErrorIcon");
175+
PART_IconBorder.Background = (Brush)FindResource("InfoBarErrorIcon");
177176
PART_Icon.Glyph = "\xF13D";
178177
break;
179178
}
@@ -193,7 +192,7 @@ private static void OnClosableChanged(DependencyObject d, DependencyPropertyChan
193192

194193
private void UpdateIconVisibility()
195194
{
196-
Part_IconBorder.Visibility = IsIconVisible ? Visibility.Visible : Visibility.Collapsed;
195+
PART_IconBorder.Visibility = IsIconVisible ? Visibility.Visible : Visibility.Collapsed;
197196
}
198197

199198
private void UpdateCloseButtonVisibility()

Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public SettingsPaneGeneralViewModel(Settings settings, Updater updater, IPortabl
3434
_portable = portable;
3535
_translater = translater;
3636
UpdateEnumDropdownLocalizations();
37-
// Initialize the Korean IME status by checking registry
38-
IsLegacyKoreanIMEEnabled();
3937
OpenImeSettingsCommand = new RelayCommand(OpenImeSettings);
4038
}
4139

0 commit comments

Comments
 (0)