mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
mark modified in setters
This commit is contained in:
parent
7362bd26cf
commit
e720e4facd
1 changed files with 2 additions and 15 deletions
|
|
@ -18,7 +18,7 @@ namespace Flow.Launcher.Plugin.Program.ViewModels
|
|||
set
|
||||
{
|
||||
enabled = value;
|
||||
OnPropertyChanged(nameof(Enabled));
|
||||
StatusModified = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ namespace Flow.Launcher.Plugin.Program.ViewModels
|
|||
set
|
||||
{
|
||||
location = value;
|
||||
OnPropertyChanged(nameof(Location));
|
||||
LocationModified = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -55,19 +55,6 @@ namespace Flow.Launcher.Plugin.Program.ViewModels
|
|||
location = Source.Location;
|
||||
AddBtnText = API.GetTranslation("flowlauncher_plugin_program_update");
|
||||
IsCustomSource = Settings.ProgramSources.Any(x => x.UniqueIdentifier == Source.UniqueIdentifier);
|
||||
|
||||
this.PropertyChanged += (_, args) =>
|
||||
{
|
||||
switch (args.PropertyName)
|
||||
{
|
||||
case nameof(Location):
|
||||
LocationModified = true;
|
||||
break;
|
||||
case nameof(Enabled):
|
||||
StatusModified = true;
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void Browse()
|
||||
|
|
|
|||
Loading…
Reference in a new issue