mirror of https://github.com/ksherlock/ample.git
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