Project Maintenance

This commit is contained in:
Gustave Monce
2021-08-09 20:21:09 +02:00
parent 9865ef7f79
commit 847ce0506d
411 changed files with 5922 additions and 54941 deletions
+5 -3
View File
@@ -24,8 +24,8 @@ namespace WPinternals
{
internal class NokiaModeMassStorageViewModel : ContextViewModel
{
private MassStorage CurrentModel;
private Action<PhoneInterfaces?> RequestModeSwitch;
private readonly MassStorage CurrentModel;
private readonly Action<PhoneInterfaces?> RequestModeSwitch;
internal NokiaModeMassStorageViewModel(NokiaPhoneModel CurrentModel, Action<PhoneInterfaces?> RequestModeSwitch)
: base()
@@ -44,14 +44,16 @@ namespace WPinternals
set
{
_SupportsReboot = value;
OnPropertyChanged("SupportsReboot");
OnPropertyChanged(nameof(SupportsReboot));
}
}
internal override void EvaluateViewState()
{
if (IsActive)
{
SupportsReboot = CurrentModel.DoesDeviceSupportReboot();
}
}
public void RebootTo(string Mode)