-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Avalonia and other NuGet packages (#225)
* Upgrade Avalonia to 11.0.6 and make required changes * dotnet format * make codacy happy * Remove duplicate * Fix some styles looking odd with the upgrade * Update Avalonia and Autofac dependencies * Display pop-up when the code scan fails * Add serialization option for enum to make this log easier to read * Fix couple of codacy issues * Fix null exception
- Loading branch information
1 parent
781526c
commit 70af956
Showing
44 changed files
with
608 additions
and
369 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<Application xmlns="https://github.com/avaloniaui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:UnitystationLauncher" | ||
x:Class="UnitystationLauncher.App"> | ||
x:Class="UnitystationLauncher.App" | ||
RequestedThemeVariant="Default"> | ||
<Application.DataTemplates> | ||
<local:ViewLocator /> | ||
</Application.DataTemplates> | ||
|
||
<Application.Styles> | ||
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml" /> | ||
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseDark.xaml" /> | ||
<FluentTheme /> | ||
<StyleInclude Source="/Styles.axaml" /> | ||
</Application.Styles> | ||
</Application> |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace UnitystationLauncher.Models.ContentScanning; | ||
|
||
public class ScanLog | ||
{ | ||
// Not 100% sure we need this, as this could just be replaced with a bool. | ||
// However, I think it makes the code a bit easier to read to have a named thing so I did it anyways. | ||
public enum LogType | ||
{ | ||
Info, | ||
Error | ||
} | ||
|
||
/// <summary> | ||
/// Used to know which log we need to write this to | ||
/// </summary> | ||
public LogType Type { get; init; } = LogType.Info; | ||
|
||
/// <summary> | ||
/// Log message to be written | ||
/// </summary> | ||
public string LogMessage { get; init; } = string.Empty; | ||
} |
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 |
---|---|---|
|
@@ -5,5 +5,6 @@ public enum MessageBoxButtons | |
Ok, | ||
OkCancel, | ||
YesNo, | ||
YesNoCancel | ||
YesNoCancel, | ||
OpenLogFolderOk | ||
} |
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
Oops, something went wrong.