private async void ToolStripMenuItem_UpdateGrocy_Click(object sender, EventArgs e) { await GrocyDesktopDependencyManager.UpdateEmbeddedGrocyRelease(this); this.GrocyManager.Setup(); this.GrocyBrowser.Load(this.GrocyManager.LocalUrl); }
private async void updateToolStripMenuItem_Click(object sender, EventArgs e) { this.PhpServer.StopServer(); await GrocyDesktopDependencyManager.UpdateEmbeddedGrocyRelease(this); this.PhpServer.StartServer(); this.GrocyEnvironmentManager.Setup(this.PhpServer.Url); this.Browser.Load(this.PhpServer.Url); }
private async void ToolStripMenuItem_UpdateGrocy_Click(object sender, EventArgs e) { this.GrocyPhpServer.StopServer(); Thread.Sleep(2000); // Just give php.exe some time to stop... await GrocyDesktopDependencyManager.UpdateEmbeddedGrocyRelease(this); this.GrocyPhpServer.StartServer(); this.GrocyEnvironmentManager.Setup(this.GrocyPhpServer.Url); this.GrocyBrowser.Load(this.GrocyPhpServer.Url); }