Skip to content

Commit 12628c5

Browse files
committed
Add more conditional (#3641)
1 parent e180bd0 commit 12628c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ILSpy/AboutPage.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ private void Display(DecompilerTextView textView)
9494
};
9595

9696
var settings = settingsService.GetSettings<UpdateSettings>();
97+
#if CROSS_PLATFORM
98+
checkBox.Bind(ToggleButton.IsCheckedProperty, new Binding("AutomaticUpdateCheckEnabled") { Source = settings });
99+
#else
97100
checkBox.SetBinding(ToggleButton.IsCheckedProperty, new Binding("AutomaticUpdateCheckEnabled") { Source = settings });
101+
#endif
98102
return new StackPanel {
99103
Margin = new Thickness(0, 4, 0, 0),
100104
Cursor = Cursors.Arrow,
@@ -192,7 +196,11 @@ static void ShowAvailableVersion(AvailableVersionInfo availableVersion, StackPan
192196
stackPanel.Children.Add(
193197
new Image {
194198
Width = 16, Height = 16,
199+
#if CROSS_PLATFORM
200+
Source = Images.LoadImage(Images.OK),
201+
#else
195202
Source = Images.OK,
203+
#endif
196204
Margin = new Thickness(4, 0, 4, 0)
197205
});
198206
stackPanel.Children.Add(

0 commit comments

Comments
 (0)