method to reset the machine view controller.

This commit is contained in:
Kelvin Sherlock 2021-06-13 17:17:47 -04:00
parent cae68c7f5a
commit 67f2c60286
3 changed files with 8 additions and 0 deletions

View File

@ -715,6 +715,7 @@ static NSString *ShellQuote(NSString *s) {
if (!d) {
[self resetAll: sender];
[self setMachine: nil];
[_machineViewController reset];
[_slotController setMachine: nil];
return;
}

View File

@ -15,6 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nullable) NSString *machine;
-(void)reset;
@end
@interface NewMachineViewController (Table) <NSOutlineViewDelegate, NSOutlineViewDataSource>

View File

@ -61,6 +61,11 @@
}
-(void)reset {
[_outlineView deselectAll: nil];
[self setMachine: nil];
}
@end