Skip to content
Snippets Groups Projects
Commit e2390f63 authored by Jason Dittmer (jcd763)'s avatar Jason Dittmer (jcd763)
Browse files

Bug fix, deleting profiles should delete the correct profile now.

parent 57edbaa6
No related tags found
No related merge requests found
......@@ -209,9 +209,9 @@ public class MainScreen extends Pane {
if (alert.getResult() == ButtonType.YES) {
deleteProfile delP = new deleteProfile();
checkActive active = new checkActive();
if (!active.CheckActive().getName().equals("Default")) {
if (!profileSelector.getValue().equals("Default")) {
profileSelector.getItems().remove(active.CheckActive().getName());
delP.DeleteProfile(active.CheckActive().getName());
delP.DeleteProfile(profileSelector.getValue());
setActive set = new setActive();
set.SetActive("Default");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment