Skip to content

Commit e720e4f

Browse files
mark modified in setters
1 parent 7362bd2 commit e720e4f

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

Plugins/Flow.Launcher.Plugin.Program/ViewModels/AddProgramSourceViewModel.cs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public bool Enabled
1818
set
1919
{
2020
enabled = value;
21-
OnPropertyChanged(nameof(Enabled));
21+
StatusModified = true;
2222
}
2323
}
2424

@@ -29,7 +29,7 @@ public string Location
2929
set
3030
{
3131
location = value;
32-
OnPropertyChanged(nameof(Location));
32+
LocationModified = true;
3333
}
3434
}
3535

@@ -55,19 +55,6 @@ public AddProgramSourceViewModel(PluginInitContext context, Settings settings, P
5555
location = Source.Location;
5656
AddBtnText = API.GetTranslation("flowlauncher_plugin_program_update");
5757
IsCustomSource = Settings.ProgramSources.Any(x => x.UniqueIdentifier == Source.UniqueIdentifier);
58-
59-
this.PropertyChanged += (_, args) =>
60-
{
61-
switch (args.PropertyName)
62-
{
63-
case nameof(Location):
64-
LocationModified = true;
65-
break;
66-
case nameof(Enabled):
67-
StatusModified = true;
68-
break;
69-
}
70-
};
7158
}
7259

7360
public void Browse()

0 commit comments

Comments
 (0)