Clear preload cache on "login shell" option changes

This commit is contained in:
Bjorn Winckler
2008-08-11 21:32:41 +02:00
parent 6f0611c29a
commit 0a0f80b2c0
4 changed files with 19 additions and 5 deletions
+7 -2
View File
@@ -64,8 +64,13 @@
<string>NSView</string>
</dict>
<dict>
<key>ACTIONS</key>
<dict>
<key>loginShellButtonClicked</key>
<string>id</string>
</dict>
<key>CLASS</key>
<string>NSMenu</string>
<string>FirstResponder</string>
<key>LANGUAGE</key>
<string>ObjC</string>
<key>SUPERCLASS</key>
@@ -73,7 +78,7 @@
</dict>
<dict>
<key>CLASS</key>
<string>FirstResponder</string>
<string>NSMenu</string>
<key>LANGUAGE</key>
<string>ObjC</string>
<key>SUPERCLASS</key>
+1 -3
View File
@@ -9,9 +9,7 @@
<key>IBOldestOS</key>
<integer>5</integer>
<key>IBOpenObjects</key>
<array>
<integer>620</integer>
</array>
<array/>
<key>IBSystem Version</key>
<string>9E17</string>
<key>targetFramework</key>
Binary file not shown.
+11
View File
@@ -982,6 +982,17 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
[NSApp makeWindowsPerform:@selector(performZoom:) inOrder:YES];
}
- (IBAction)loginShellButtonClicked:(id)sender
{
// This action is called when the user clicks the "use login shell" button
// in the general preferences pane.
if ([self maxPreloadCacheSize] > 0) {
[self clearPreloadCacheWithCount:-1];
[self cancelVimControllerPreloadRequests];
[self scheduleVimControllerPreloadAfterDelay:1.0];
}
}
- (byref id <MMFrontendProtocol>)
connectBackend:(byref in id <MMBackendProtocol>)backend
pid:(int)pid