add restart with windows and autorestart

This commit is contained in:
thuannd88
2024-09-06 23:23:19 +07:00
parent bcfef9d82d
commit 84d9f15ab7
10 changed files with 306 additions and 24 deletions
+6
View File
@@ -131,5 +131,11 @@ namespace SafeBagDE70
window.Width = screen.WorkingArea.Width;
window.Height = screen.WorkingArea.Height;
}
protected override void OnExit(ExitEventArgs e)
{
// Release the mutex when the application is closed
mutex?.ReleaseMutex();
base.OnExit(e);
}
}
}