Change Quickstart slider to checkbox in advanced prefs

This commit is contained in:
Bjorn Winckler
2008-08-12 20:18:40 +02:00
parent 1611954a47
commit 055d07bd87
6 changed files with 17 additions and 11 deletions
+2
View File
@@ -68,6 +68,8 @@
<dict>
<key>loginShellButtonClicked</key>
<string>id</string>
<key>quickstartButtonClicked</key>
<string>id</string>
</dict>
<key>CLASS</key>
<string>FirstResponder</string>
+3 -1
View File
@@ -9,7 +9,9 @@
<key>IBOldestOS</key>
<integer>5</integer>
<key>IBOpenObjects</key>
<array/>
<array>
<integer>633</integer>
</array>
<key>IBSystem Version</key>
<string>9E17</string>
<key>targetFramework</key>
Binary file not shown.
+12
View File
@@ -993,6 +993,18 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
}
}
- (IBAction)quickstartButtonClicked:(id)sender
{
if ([self maxPreloadCacheSize] > 0) {
[self scheduleVimControllerPreloadAfterDelay:1.0];
[self startWatchingVimDir];
} else {
[self cancelVimControllerPreloadRequests];
[self clearPreloadCacheWithCount:-1];
[self stopWatchingVimDir];
}
}
- (byref id <MMFrontendProtocol>)
connectBackend:(byref in id <MMBackendProtocol>)backend
pid:(int)pid
-3
View File
@@ -35,7 +35,4 @@
- (IBAction)installOdb:(id)sender;
- (IBAction)uninstallOdb:(id)sender;
// Advanced pane
- (IBAction)changePreloadCacheSize:(id)sender;
@end
-7
View File
@@ -9,7 +9,6 @@
*/
#import "AuthorizedShellCommand.h"
#import "MMAppController.h"
#import "MMPreferenceController.h"
#import "Miscellaneous.h"
@@ -406,10 +405,4 @@ NSString *kOdbEditorIdentifierWriteRoom = @"com.hogbaysoftware.WriteRoom";
[self updateIntegrationPane];
}
- (IBAction)changePreloadCacheSize:(id)sender
{
int size = [sender floatValue];
[[MMAppController sharedInstance] setPreloadCacheSize:(int)size];
}
@end