mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Added Tests and Refactored code (#2129)
* Added Tests and Refactored code * removed un-used file * delete test files when test completes * removed extra build configs * added clean-up method * removed unused variable * re-added removed attributtion * added error handling and move strings to string resource * added error handling to file explorer view model * moved varible assignment to if statement block * removed savin of settings file from the UI * re-added open source notice * added missing controls for powerrename and fancy zones * removed dead coded * remove un-used configuration * added error handling for file saving and updated powerreanme constructor * removed added configurations * added settings state
This commit is contained in:
@@ -15,7 +15,20 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
{
|
||||
properties = new PowerRenameProperties();
|
||||
version = "1";
|
||||
name = "_unset_";
|
||||
name = "PowerRename";
|
||||
}
|
||||
|
||||
public PowerRenameSettings(PowerRenameLocalProperties localProperties)
|
||||
{
|
||||
properties = new PowerRenameProperties();
|
||||
properties.PersistState.Value = localProperties.PersistState;
|
||||
properties.MRUEnabled.Value = localProperties.MRUEnabled;
|
||||
properties.MaxMRUSize.Value = localProperties.MaxMRUSize;
|
||||
properties.ShowIcon.Value = localProperties.ShowIcon;
|
||||
properties.ExtendedContextMenuOnly.Value = localProperties.ExtendedContextMenuOnly;
|
||||
|
||||
version = "1";
|
||||
name = "PowerRename";
|
||||
}
|
||||
|
||||
public PowerRenameSettings(string ptName)
|
||||
|
||||
Reference in New Issue
Block a user