Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 7e61caa

Browse files
committed
Merge branch 'v1.6-service' into vNext
2 parents 7627295 + 0e53d5a commit 7e61caa

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

86BoxManager/frmMain.Designer.cs

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

86BoxManager/frmMain.cs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,10 @@ public void VMAdd(string name, string desc, bool openCFG, bool startVM)
895895
MessageBox.Show("Virtual machine \"" + newVM.Name + "\" was successfully created!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
896896

897897
//Select the newly created VM
898+
foreach(ListViewItem lvi in lstVMs.SelectedItems)
899+
{
900+
lvi.Selected = false;
901+
}
898902
newLvi.Focused = true;
899903
newLvi.Selected = true;
900904

@@ -1646,6 +1650,10 @@ public void VMImport(string name, string desc, string importPath, bool openCFG,
16461650
}
16471651

16481652
//Select the newly created VM
1653+
foreach(ListViewItem lvi in lstVMs.SelectedItems)
1654+
{
1655+
lvi.Selected = false;
1656+
}
16491657
newLvi.Focused = true;
16501658
newLvi.Selected = true;
16511659

@@ -1669,7 +1677,7 @@ private void cloneToolStripMenuItem_Click(object sender, EventArgs e)
16691677
dlgCloneVM dc = new dlgCloneVM(vm.Path);
16701678
dc.ShowDialog();
16711679
}
1672-
1680+
16731681
//Refreshes the VM counter in the status bar
16741682
private void VMCountRefresh()
16751683
{
@@ -1691,6 +1699,27 @@ private void VMCountRefresh()
16911699
}
16921700

16931701
lblVMCount.Text = "Total VMs: " + lstVMs.Items.Count + " | Running: " + runningVMs + " | Paused: " + pausedVMs + " | Waiting: " + waitingVMs + " | Stopped: " + stoppedVMs;
1702+
}
1703+
1704+
private void openConfigFileToolStripMenuItem_Click(object sender, EventArgs e)
1705+
{
1706+
VMOpenConfig();
1707+
}
1708+
1709+
private void VMOpenConfig()
1710+
{
1711+
foreach (ListViewItem lvi in lstVMs.SelectedItems)
1712+
{
1713+
VM vm = (VM)lvi.Tag;
1714+
try
1715+
{
1716+
Process.Start(vm.Path + Path.DirectorySeparatorChar + "86box.cfg");
1717+
}
1718+
catch (Exception ex)
1719+
{
1720+
MessageBox.Show("The config file for the virtual machine \"" + vm.Name + "\" could not be opened. Make sure it still exists and that you have sufficient privileges to access it.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
1721+
}
1722+
}
16941723
}
16951724
}
16961725
}

0 commit comments

Comments
 (0)