Bring app to front on shell open file

This commit is contained in:
LarsBrubaker 2022-03-08 22:51:14 -08:00
parent 9d9040f799
commit a78ef2a66f
3 changed files with 7 additions and 3 deletions

View file

@ -2369,7 +2369,11 @@ namespace MatterHackers.MatterControl
public void ShellOpenFile(string file)
{
UiThread.RunOnIdle(() => this.ShellFileOpened?.Invoke(this, file));
UiThread.RunOnIdle(() =>
{
ShellFileOpened?.Invoke(this, file);
AppContext.RootSystemWindow.BringToFront();
});
}
private void KeepAwakeIfNeeded()

@ -1 +1 @@
Subproject commit 17248e4261e37cd59447a985f3813f9388fd3cf2
Subproject commit 7f6033fc815e18b58ef52a3eb84e1e588c27feed

View file

@ -79,7 +79,7 @@ M300 S3000 P30 ; Resume Tone";
public void ModifyPrinterProfiles()
{
// This is not really a test. It updaets our profiles with new settings.
//return;
return;
StaticData.RootPath = TestContext.CurrentContext.ResolveProjectPath(4, "StaticData");
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));