From 4d67fa8e803b33ef0ebfe243d2c6f810e092738c Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Mon, 1 Mar 2021 22:58:52 +0200 Subject: [PATCH] Close all related windows when closing a document --- Cocoa/Document.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index 9e52214..c3a0010 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -865,6 +865,10 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) [[NSUserDefaults standardUserDefaults] setInteger:self.mainWindow.frame.size.height forKey:@"LastWindowHeight"]; [self stop]; [self.consoleWindow close]; + [self.memoryWindow close]; + [self.vramWindow close]; + [self.printerFeedWindow close]; + [self.cheatsWindow close]; [super close]; }