Fix part of T65404: quit dialog doesn't show if Blender is minimized
This solves the problem for macOS and Linux, but not Windows yet. Differential Revision: https://developer.blender.org/D6673
This commit is contained in:
parent
2662ba2438
commit
f4f57ed21a
|
@ -799,6 +799,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setOrder(GHOST_TWindowOrder order)
|
|||
|
||||
GHOST_ASSERT(getValid(), "GHOST_WindowCocoa::setOrder(): window invalid");
|
||||
if (order == GHOST_kWindowOrderTop) {
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
[m_window makeKeyAndOrderFront:nil];
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -395,6 +395,7 @@ void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win)
|
|||
|
||||
if (U.uiflag & USER_SAVE_PROMPT) {
|
||||
if (wm_file_or_image_is_modified(C) && !G.background) {
|
||||
wm_window_raise(win);
|
||||
wm_confirm_quit(C);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue