mirror of
https://github.com/ksherlock/ample.git
synced 2024-11-19 02:11:08 +00:00
method to reset the machine view controller.
This commit is contained in:
parent
cae68c7f5a
commit
67f2c60286
@ -715,6 +715,7 @@ static NSString *ShellQuote(NSString *s) {
|
||||
if (!d) {
|
||||
[self resetAll: sender];
|
||||
[self setMachine: nil];
|
||||
[_machineViewController reset];
|
||||
[_slotController setMachine: nil];
|
||||
return;
|
||||
}
|
||||
|
@ -15,6 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@property (nullable) NSString *machine;
|
||||
|
||||
-(void)reset;
|
||||
|
||||
@end
|
||||
|
||||
@interface NewMachineViewController (Table) <NSOutlineViewDelegate, NSOutlineViewDataSource>
|
||||
|
@ -61,6 +61,11 @@
|
||||
|
||||
}
|
||||
|
||||
-(void)reset {
|
||||
|
||||
[_outlineView deselectAll: nil];
|
||||
[self setMachine: nil];
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user