|
@@ -12,9 +12,9 @@ namespace SyncTrayzor.Pages
|
|
|
{
|
|
{
|
|
|
public class AboutViewModel : Screen
|
|
public class AboutViewModel : Screen
|
|
|
{
|
|
{
|
|
|
|
|
+ // Not in the app.config, in case some sysadmin wants to change it
|
|
|
private readonly IWindowManager windowManager;
|
|
private readonly IWindowManager windowManager;
|
|
|
private readonly ISyncthingManager syncthingManager;
|
|
private readonly ISyncthingManager syncthingManager;
|
|
|
- private readonly IConfigurationProvider configurationProvider;
|
|
|
|
|
private readonly IUpdateManager updateManager;
|
|
private readonly IUpdateManager updateManager;
|
|
|
private readonly Func<ThirdPartyComponentsViewModel> thirdPartyComponentsViewModelFactory;
|
|
private readonly Func<ThirdPartyComponentsViewModel> thirdPartyComponentsViewModelFactory;
|
|
|
private readonly IProcessStartProvider processStartProvider;
|
|
private readonly IProcessStartProvider processStartProvider;
|
|
@@ -30,20 +30,22 @@ namespace SyncTrayzor.Pages
|
|
|
}
|
|
}
|
|
|
private string newerVersionDownloadUrl;
|
|
private string newerVersionDownloadUrl;
|
|
|
|
|
|
|
|
|
|
+ public IDonationManager DonationManager { get; }
|
|
|
|
|
+
|
|
|
public AboutViewModel(
|
|
public AboutViewModel(
|
|
|
IWindowManager windowManager,
|
|
IWindowManager windowManager,
|
|
|
ISyncthingManager syncthingManager,
|
|
ISyncthingManager syncthingManager,
|
|
|
- IConfigurationProvider configurationProvider,
|
|
|
|
|
IUpdateManager updateManager,
|
|
IUpdateManager updateManager,
|
|
|
Func<ThirdPartyComponentsViewModel> thirdPartyComponentsViewModelFactory,
|
|
Func<ThirdPartyComponentsViewModel> thirdPartyComponentsViewModelFactory,
|
|
|
- IProcessStartProvider processStartProvider)
|
|
|
|
|
|
|
+ IProcessStartProvider processStartProvider,
|
|
|
|
|
+ IDonationManager donationManager)
|
|
|
{
|
|
{
|
|
|
this.windowManager = windowManager;
|
|
this.windowManager = windowManager;
|
|
|
this.syncthingManager = syncthingManager;
|
|
this.syncthingManager = syncthingManager;
|
|
|
- this.configurationProvider = configurationProvider;
|
|
|
|
|
this.updateManager = updateManager;
|
|
this.updateManager = updateManager;
|
|
|
this.thirdPartyComponentsViewModelFactory = thirdPartyComponentsViewModelFactory;
|
|
this.thirdPartyComponentsViewModelFactory = thirdPartyComponentsViewModelFactory;
|
|
|
this.processStartProvider = processStartProvider;
|
|
this.processStartProvider = processStartProvider;
|
|
|
|
|
+ this.DonationManager = donationManager;
|
|
|
|
|
|
|
|
this.Version = Assembly.GetExecutingAssembly().GetName().Version.ToString(3);
|
|
this.Version = Assembly.GetExecutingAssembly().GetName().Version.ToString(3);
|
|
|
this.HomepageUrl = AppSettings.Instance.HomepageUrl;
|
|
this.HomepageUrl = AppSettings.Instance.HomepageUrl;
|
|
@@ -51,8 +53,6 @@ namespace SyncTrayzor.Pages
|
|
|
this.syncthingManager.DataLoaded += this.SyncthingDataLoaded;
|
|
this.syncthingManager.DataLoaded += this.SyncthingDataLoaded;
|
|
|
this.LoadSyncthingVersion();
|
|
this.LoadSyncthingVersion();
|
|
|
|
|
|
|
|
- var configuration = this.configurationProvider.Load();
|
|
|
|
|
-
|
|
|
|
|
this.CheckForNewerVersionAsync();
|
|
this.CheckForNewerVersionAsync();
|
|
|
}
|
|
}
|
|
|
|
|
|