Skip to content

Commit 70b0e3b

Browse files
Fix uid change when editing uwp sources
1 parent 1348708 commit 70b0e3b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,14 @@ private void BtnAdd_OnClick(object sender, RoutedEventArgs e)
7373
}
7474
else
7575
{
76-
modified = _editing.Location != path || _editing.Enabled != Chkbox.IsChecked;
77-
if (modified)
76+
if (!_editing.Location.Equals(path, System.StringComparison.OrdinalIgnoreCase))
7877
{
79-
_editing.Location = path;
78+
modified = true;
79+
_editing.Location = path; // Changes UniqueIdentifier internally
80+
}
81+
if (_editing.Enabled != Chkbox.IsChecked)
82+
{
83+
modified = true;
8084
_editing.Enabled = Chkbox.IsChecked ?? true;
8185
}
8286
}

0 commit comments

Comments
 (0)