Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBeekman committed Feb 28, 2024
2 parents e6565a2 + fb59443 commit 1d23c69
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions src/Artemis.Core/Plugins/PluginInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Artemis.Core;
/// </summary>
public class PluginInfo : CorePropertyChanged, IPrerequisitesSubject
{
private Version? _api;
private Version? _api = new(1, 0, 0);
private string? _author;
private bool _autoEnableFeatures = true;
private string? _description;
Expand Down Expand Up @@ -38,7 +38,7 @@ internal PluginInfo()
/// The plugins GUID
/// </summary>
[JsonRequired]
[JsonInclude]
[JsonInclude]
public Guid Guid
{
get => _guid;
Expand All @@ -49,7 +49,7 @@ public Guid Guid
/// The name of the plugin
/// </summary>
[JsonRequired]
[JsonInclude]
[JsonInclude]
public string Name
{
get => _name;
Expand Down Expand Up @@ -91,7 +91,7 @@ public Uri? Repository
get => _repository;
set => SetAndNotify(ref _repository, value);
}

/// <summary>
/// Gets or sets the help page of this plugin
/// </summary>
Expand All @@ -100,7 +100,7 @@ public Uri? HelpPage
get => _helpPage;
set => SetAndNotify(ref _helpPage, value);
}

/// <summary>
/// Gets or sets the help page of this plugin
/// </summary>
Expand All @@ -109,7 +109,7 @@ public Uri? License
get => _license;
set => SetAndNotify(ref _license, value);
}

/// <summary>
/// Gets or sets the author of this plugin
/// </summary>
Expand All @@ -133,7 +133,7 @@ public string? Icon
/// The version of the plugin
/// </summary>
[JsonRequired]
[JsonInclude]
[JsonInclude]
public string Version
{
get => _version;
Expand All @@ -144,7 +144,7 @@ public string Version
/// The main entry DLL, should contain a class implementing Plugin
/// </summary>
[JsonRequired]
[JsonInclude]
[JsonInclude]
public string Main
{
get => _main;
Expand All @@ -164,7 +164,7 @@ public bool AutoEnableFeatures
/// <summary>
/// Gets a boolean indicating whether this plugin requires elevated admin privileges
/// </summary>
[JsonInclude]
[JsonInclude]
public bool RequiresAdmin
{
get => _requiresAdmin;
Expand All @@ -183,7 +183,7 @@ public bool HotReloadSupported
/// <summary>
/// Gets
/// </summary>
[JsonInclude]
[JsonInclude]
public PluginPlatform? Platforms
{
get => _platforms;
Expand All @@ -193,7 +193,7 @@ public PluginPlatform? Platforms
/// <summary>
/// Gets the API version the plugin was built for
/// </summary>
[JsonInclude]
[JsonInclude]
public Version? Api
{
get => _api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
<Button HorizontalAlignment="Center" Command="{CompiledBinding AddSubmission}">Submit new entry</Button>
</StackPanel>

<StackPanel Spacing="15">
<Button HorizontalAlignment="Right" Command="{CompiledBinding AddSubmission}">Submit new entry</Button>
<ScrollViewer IsVisible="{CompiledBinding Entries.Count}">
<Grid RowDefinitions="Auto,*">
<Button Grid.Row="0" Margin="0 0 0 15" HorizontalAlignment="Right" Command="{CompiledBinding AddSubmission}">Submit new entry</Button>
<ScrollViewer Grid.Row="1" IsVisible="{CompiledBinding Entries.Count}">
<ItemsControl ItemsSource="{CompiledBinding Entries}">
<ItemsControl.ItemTemplate>
<DataTemplate>
Expand All @@ -52,7 +52,7 @@
</ItemsControl.ItemsPanel>
</ItemsControl>
</ScrollViewer>
</StackPanel>
</Grid>

</Panel>
</Panel>
Expand Down

0 comments on commit 1d23c69

Please sign in to comment.