From ebf4d1d0eebd54983c85dd9b626ae5f69596f960 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 25 May 2024 20:08:22 +0300 Subject: [PATCH] Do not autohide debugger windows, give them all the ROM filename in the title. Closes #620 --- Cocoa/Document.m | 6 +++++- Cocoa/Document.xib | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index 738bf4ed6..c2e64be4b 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -778,6 +778,9 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) self.consoleWindow.title = [NSString stringWithFormat:@"Debug Console – %@", [self.fileURL.path lastPathComponent]]; + self.memoryWindow.title = [NSString stringWithFormat:@"Memory – %@", [self.fileURL.path lastPathComponent]]; + self.vramWindow.title = [NSString stringWithFormat:@"VRAM Viewer – %@", [self.fileURL.path lastPathComponent]]; + self.debuggerSplitView.dividerColor = self.debuggerVerticalLine.borderColor; [self.debuggerVerticalLine removeFromSuperview]; // No longer used, just there for the color if (@available(macOS 11.0, *)) { @@ -2325,7 +2328,8 @@ enum GBWindowResizeAction { [super setFileURL:fileURL]; self.consoleWindow.title = [NSString stringWithFormat:@"Debug Console – %@", [[fileURL path] lastPathComponent]]; - + self.memoryWindow.title = [NSString stringWithFormat:@"Memory – %@", [[fileURL path] lastPathComponent]]; + self.vramWindow.title = [NSString stringWithFormat:@"VRAM Viewer – %@", [[fileURL path] lastPathComponent]]; } - (BOOL)splitView:(GBSplitView *)splitView canCollapseSubview:(NSView *)subview; diff --git a/Cocoa/Document.xib b/Cocoa/Document.xib index 2e2c670ad..dd5178f98 100644 --- a/Cocoa/Document.xib +++ b/Cocoa/Document.xib @@ -86,7 +86,7 @@ - + @@ -320,7 +320,7 @@ - + @@ -403,7 +403,7 @@ - + @@ -875,7 +875,7 @@ - +