mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
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:
parent
cfb4711692
commit
70ad158470
2 changed files with 8 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue