Fixed BUG-1620 Greenshot crashing Chrome running in 'Windows 8 Mode', it seems the HideApp causes the app to restart. Don't know if we need this anymore, with 1 screen windows 8.1 everything works without it.

This commit is contained in:
RKrom 2014-11-18 23:07:43 +01:00
commit 70ad158470
2 changed files with 8 additions and 5 deletions

View file

@ -945,13 +945,15 @@ namespace Greenshot.Helpers {
#region capture with feedback
private void CaptureWithFeedback() {
// The following, to be precise the HideApp, causes the app to close as described in BUG-1620
// Added check for metro (Modern UI) apps, which might be maximized and cover the screen.
// as they don't want to
foreach(WindowDetails app in WindowDetails.GetMetroApps()) {
if (app.Maximised) {
app.HideApp();
}
}
// if (app.Maximised) {
// app.HideApp();
// }
//}
using (CaptureForm captureForm = new CaptureForm(_capture, _windows)) {
DialogResult result = captureForm.ShowDialog();
if (result == DialogResult.OK) {