-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2008bab
commit 10d28e0
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Kaplan Copyright (c) DragonFruit Network <[email protected]> | ||
// Licensed under Apache-2. Refer to the LICENSE file for more info | ||
|
||
using System; | ||
using Avalonia; | ||
using Avalonia.Controls; | ||
using Avalonia.Controls.ApplicationLifetimes; | ||
|
@@ -14,8 +15,14 @@ public partial class Welcome : Window | |
public Welcome() | ||
{ | ||
InitializeComponent(); | ||
DataContext = this; | ||
} | ||
|
||
public bool ShowCompatabilityMessage => !WindowsVersionCompatible; | ||
public bool WindowsVersionCompatible => Environment.OSVersion.Version >= Program.MinWindowsVersion; | ||
|
||
public string CompatabilityErrorMessage => $"Windows {Program.MinWindowsVersion.ToString()} is required to use this program. This machine is currently running version {Environment.OSVersion.Version.ToString()}"; | ||
|
||
private async void OpenAboutDialog(object sender, RoutedEventArgs e) | ||
{ | ||
await new About().ShowDialog(this).ConfigureAwait(false); | ||
|