Skip to content

Commit

Permalink
Add Open UADIntaller functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
quangaming2929 authored and quangaming2929 committed May 15, 2019
1 parent 752686a commit 25aa24e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 0 additions & 2 deletions UniversalAnimeDownloader/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,6 @@
Text="{Binding LoadingStatus}" />

<Canvas Width="{Binding ElementName=mainWindow, Path=ActualWidth}">


<materialDesign:PackIcon
Width="36"
Height="36"
Expand Down
15 changes: 15 additions & 0 deletions UniversalAnimeDownloader/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
Expand Down Expand Up @@ -732,6 +734,19 @@ public MainWindowViewModel()
view.Refresh();
});
CloseUniversalAnimeDownloader = new RelayCommand<object>(null, p => Application.Current.Shutdown(0));
OpenUADInstaller = new RelayCommand<object>(null, p =>
{
var file = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Maintance", "UADInstallerLoc.txt");

if (File.Exists(file))
{
try
{
Process.Start(File.ReadAllText(file));
}
catch { }
}
});
}

private async void LoadInSplashScreen()
Expand Down

0 comments on commit 25aa24e

Please sign in to comment.