OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18c7f30
)
Adopted change from Angband: don't change the window visibility because a window...
author
Eric Branlund
<ebranlund@fastmail.com>
Fri, 6 Mar 2020 23:14:31 +0000
(15:14 -0800)
committer
Eric Branlund
<ebranlund@fastmail.com>
Fri, 6 Mar 2020 23:14:31 +0000
(15:14 -0800)
src/main-cocoa.m
patch
|
blob
|
history
diff --git
a/src/main-cocoa.m
b/src/main-cocoa.m
index
620fe3d
..
73b9aff
100644
(file)
--- a/
src/main-cocoa.m
+++ b/
src/main-cocoa.m
@@
-2300,7
+2300,13
@@
static __strong NSFont* gDefaultFont = nil;
- (void)windowWillClose: (NSNotification *)notification
{
+ /*
+ * If closing only because the application is terminating, don't update
+ * the visible state for when the application is relaunched.
+ */
+ if (! quit_when_ready) {
[self saveWindowVisibleToDefaults: NO];
+ }
}
@end
@@
-4780,6
+4786,7
@@
static void play_sound(int event)
{
if (p_ptr->playing == FALSE || game_is_finished == TRUE)
{
+ quit_when_ready = true;
return NSTerminateNow;
}
else if (! inkey_flag)