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) {
|
if (!d) {
|
||||||
[self resetAll: sender];
|
[self resetAll: sender];
|
||||||
[self setMachine: nil];
|
[self setMachine: nil];
|
||||||
|
[_machineViewController reset];
|
||||||
[_slotController setMachine: nil];
|
[_slotController setMachine: nil];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@property (nullable) NSString *machine;
|
@property (nullable) NSString *machine;
|
||||||
|
|
||||||
|
-(void)reset;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NewMachineViewController (Table) <NSOutlineViewDelegate, NSOutlineViewDataSource>
|
@interface NewMachineViewController (Table) <NSOutlineViewDelegate, NSOutlineViewDataSource>
|
||||||
|
|
|
@ -61,6 +61,11 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-(void)reset {
|
||||||
|
|
||||||
|
[_outlineView deselectAll: nil];
|
||||||
|
[self setMachine: nil];
|
||||||
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue