mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
PowerRename settings bugfix (#2796)
* PowerRename settings bugfix * Changed visibility to enability of PowerRename_Toggle_MaxDispListNum * Added unit tests and changed maximum value
This commit is contained in:
committed by
GitHub
parent
1ecedd5566
commit
585c66a4d0
@@ -76,6 +76,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
|
||||
_powerRenameEnabled = value;
|
||||
OnPropertyChanged("IsEnabled");
|
||||
RaisePropertyChanged("GlobalAndMruEnabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -95,10 +96,20 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
_autoComplete = value;
|
||||
Settings.properties.MRUEnabled.Value = value;
|
||||
RaisePropertyChanged();
|
||||
RaisePropertyChanged("GlobalAndMruEnabled");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool GlobalAndMruEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return _autoComplete && _powerRenameEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public bool EnabledOnContextMenu
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user