mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 01:09:17 +01:00
Moved some fields to view model
This commit is contained in:
parent
7685b95db0
commit
ea33a8d948
@ -55,9 +55,6 @@ namespace DS4WinWPF.DS4Forms
|
||||
|
||||
public ProfileList ProfileListHolder { get => profileListHolder; }
|
||||
|
||||
private const string UPDATER_VERSION = "1.4.1";
|
||||
private string updaterExe = Environment.Is64BitProcess ? "DS4Updater.exe" : "DS4Updater_x86.exe";
|
||||
|
||||
public MainWindow(ArgumentParser parser)
|
||||
{
|
||||
InitializeComponent();
|
||||
@ -190,9 +187,9 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question
|
||||
bool launch = true;
|
||||
if (!File.Exists(Global.exedirpath + "\\DS4Updater.exe") ||
|
||||
(File.Exists(Global.exedirpath + "\\DS4Updater.exe")
|
||||
&& (FileVersionInfo.GetVersionInfo(Global.exedirpath + "\\DS4Updater.exe").FileVersion.CompareTo(UPDATER_VERSION) != 0)))
|
||||
&& (FileVersionInfo.GetVersionInfo(Global.exedirpath + "\\DS4Updater.exe").FileVersion.CompareTo(MainWindowsViewModel.UPDATER_VERSION) != 0)))
|
||||
{
|
||||
Uri url2 = new Uri($"https://github.com/Ryochan7/DS4Updater/releases/download/v{UPDATER_VERSION}/{updaterExe}");
|
||||
Uri url2 = new Uri($"https://github.com/Ryochan7/DS4Updater/releases/download/v{MainWindowsViewModel.UPDATER_VERSION}/{mainWinVM.updaterExe}");
|
||||
string filename = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "DS4Updater.exe");
|
||||
using (var downloadStream = new FileStream(filename, FileMode.Create))
|
||||
{
|
||||
|
@ -20,5 +20,8 @@ namespace DS4WinWPF.DS4Forms.ViewModels
|
||||
}
|
||||
}
|
||||
public event EventHandler FullTabsEnabledChanged;
|
||||
|
||||
public const string UPDATER_VERSION = "1.4.1";
|
||||
public string updaterExe = Environment.Is64BitProcess ? "DS4Updater.exe" : "DS4Updater_x86.exe";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user