diff options
author | stuconnolly <stuart02@gmail.com> | 2009-02-28 02:59:39 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-02-28 02:59:39 +0000 |
commit | b8c9157be916c058f867e24e1d087271de022047 (patch) | |
tree | bc61c56d1d4f2a1323299540aedf4fc506ca885c /Source | |
parent | 497aa0b00521383ca497db4c1c42b63b3fb32f9d (diff) | |
download | sequelpro-b8c9157be916c058f867e24e1d087271de022047.tar.gz sequelpro-b8c9157be916c058f867e24e1d087271de022047.tar.bz2 sequelpro-b8c9157be916c058f867e24e1d087271de022047.zip |
Reduce the amount of padding on the new console panel and also auto save its position. Thanks to Rowan for suggesting these.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPQueryConsole.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index 34391119..1fe62d65 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -25,6 +25,8 @@ #define DEFAULT_CONSOLE_LOG_FILENAME @"untitled" #define DEFAULT_CONSOLE_LOG_FILE_EXTENSION @"log" +#define CONSOLE_WINDOW_AUTO_SAVE_NAME @"QueryConsole" + @interface SPQueryConsole (PrivateAPI) - (void)_appendMessageToConsole:(NSString *)message withColor:(NSColor *)color; @@ -34,6 +36,16 @@ @implementation SPQueryConsole // ------------------------------------------------------------------------------- +// awakeFromNib +// +// Set the window's auto save name. +// ------------------------------------------------------------------------------- +- (void)awakeFromNib +{ + [self setWindowFrameAutosaveName:CONSOLE_WINDOW_AUTO_SAVE_NAME]; +} + +// ------------------------------------------------------------------------------- // clearConsole: // // Clears the console by setting its displayed text to an empty string. |