mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 01:39:17 +01:00
parent
9a92beff3a
commit
88081faba8
@ -1166,18 +1166,24 @@ Suspend support not enabled.", true);
|
|||||||
filename = profileListHolder.ProfileListCol[idx].Name;
|
filename = profileListHolder.ProfileListCol[idx].Name;
|
||||||
dupBox.OldFilename = filename;
|
dupBox.OldFilename = filename;
|
||||||
dupBoxBar.Visibility = Visibility.Visible;
|
dupBoxBar.Visibility = Visibility.Visible;
|
||||||
dupBox.Save += (sender2, profilename) =>
|
dupBox.Save -= DupBox_Save;
|
||||||
{
|
dupBox.Cancel -= DupBox_Cancel;
|
||||||
profileListHolder.AddProfileSort(profilename);
|
dupBox.Save += DupBox_Save;
|
||||||
dupBoxBar.Visibility = Visibility.Collapsed;
|
dupBox.Cancel += DupBox_Cancel;
|
||||||
};
|
|
||||||
dupBox.Cancel += (sender2, args) =>
|
|
||||||
{
|
|
||||||
dupBoxBar.Visibility = Visibility.Collapsed;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DupBox_Cancel(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
dupBoxBar.Visibility = Visibility.Collapsed;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DupBox_Save(DupBox sender, string profilename)
|
||||||
|
{
|
||||||
|
profileListHolder.AddProfileSort(profilename);
|
||||||
|
dupBoxBar.Visibility = Visibility.Collapsed;
|
||||||
|
}
|
||||||
|
|
||||||
private void DeleteProfBtn_Click(object sender, RoutedEventArgs e)
|
private void DeleteProfBtn_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (profilesListBox.SelectedIndex >= 0)
|
if (profilesListBox.SelectedIndex >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user