1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fixed profile model crash, cleaned up Nuget packages, UI improvements

This commit is contained in:
SpoinkyNL 2016-06-10 21:22:04 +02:00
parent ddb0b5474e
commit 7a15bb398a
3 changed files with 13 additions and 5 deletions

View File

@ -6,15 +6,16 @@ using Artemis.Modules.Effects.ProfilePreview;
using Artemis.ViewModels.Abstract;
using Artemis.ViewModels.Profiles;
using Caliburn.Micro;
using Ninject.Extensions.Logging;
namespace Artemis.Modules.Effects.WindowsProfile
{
// TODO: This effect is a hybrid between a regular effect and a game, may want to clean this up
public sealed class WindowsProfileViewModel : EffectViewModel, IHandle<ActiveEffectChanged>
{
public WindowsProfileViewModel(MainManager main, IEventAggregator events, IProfileEditorVmFactory pFactory,
ProfilePreviewModel profilePreviewModel)
: base(main, new WindowsProfileModel(main, new WindowsProfileSettings()))
public WindowsProfileViewModel(ILogger logger, MainManager main, IEventAggregator events,
IProfileEditorVmFactory pFactory, ProfilePreviewModel profilePreviewModel)
: base(main, new WindowsProfileModel(logger, main, new WindowsProfileSettings()))
{
DisplayName = "Windows Profile";
PFactory = pFactory;

View File

@ -9,22 +9,29 @@ using Artemis.Settings;
using Artemis.Utilities.Memory;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NLog;
namespace Artemis.Utilities
{
public static class Updater
{
public static int CurrentVersion = 110;
public static int CurrentVersion = 111;
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
public static async Task<Action> CheckForUpdate(MetroDialogService dialogService)
{
Logger.Info("Checking for updates - Current version: 1.1.1");
if (!General.Default.CheckForUpdates)
return null;
var newRelease = IsUpdateAvailable();
if (newRelease == null)
{
Logger.Info("No update found.");
return null;
}
Logger.Info("Found new version - {0}.", newRelease["tag_name"].Value<string>());
var viewUpdate = await
dialogService.ShowQuestionMessageBox("ApplyProperties available",
$"A new version of Artemis is available, version {newRelease["tag_name"].Value<string>()}.\n" +

View File

@ -105,7 +105,7 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.ColumnSpan="2" x:Name="ActiveEffectName" />
<TextBlock Grid.Row="1" Grid.Column="0" Text="Artemis 1.1.0" VerticalAlignment="Center"
<TextBlock Grid.Row="1" Grid.Column="0" Text="Artemis 1.1.1" VerticalAlignment="Center"
HorizontalAlignment="Left" />
<Button Grid.Row="1" Grid.Column="1" Focusable="False"
Style="{StaticResource AccentedSquareButtonStyle}"