Skip to content

Commit

Permalink
Configuration: show warning for unimplemented options
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Mar 15, 2020
1 parent 1f0c649 commit f470e85
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ConfigurationViews/VMConfigDisplayViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ @implementation VMConfigDisplayViewController

- (void)viewDidLoad {
[super viewDidLoad];
// FIXME: remove this warning
[self showUnimplementedAlert];
}

- (void)refreshViewFromConfiguration {
Expand Down
2 changes: 2 additions & 0 deletions ConfigurationViews/VMConfigInputViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ @implementation VMConfigInputViewController

- (void)viewDidLoad {
[super viewDidLoad];
// FIXME: remove this warning
[self showUnimplementedAlert];
}

- (void)refreshViewFromConfiguration {
Expand Down
2 changes: 2 additions & 0 deletions ConfigurationViews/VMConfigPrintingViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ @implementation VMConfigPrintingViewController

- (void)viewDidLoad {
[super viewDidLoad];
// FIXME: remove this warning
[self showUnimplementedAlert];
}

- (void)refreshViewFromConfiguration {
Expand Down
2 changes: 2 additions & 0 deletions ConfigurationViews/VMConfigSharingViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ @implementation VMConfigSharingViewController

- (void)viewDidLoad {
[super viewDidLoad];
// FIXME: remove this warning
[self showUnimplementedAlert];
}

- (void)refreshViewFromConfiguration {
Expand Down
1 change: 1 addition & 0 deletions ConfigurationViews/VMConfigViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ NS_ASSUME_NONNULL_BEGIN

- (void)pickerCell:(nonnull UITableViewCell *)pickerCell setActive:(BOOL)active;
- (void)showAlert:(NSString *)msg completion:(nullable void (^)(UIAlertAction *action))completion;
- (void)showUnimplementedAlert;

@end

Expand Down
4 changes: 4 additions & 0 deletions ConfigurationViews/VMConfigViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@ - (void)showAlert:(NSString *)msg completion:(nullable void (^)(UIAlertAction *a
});
}

- (void)showUnimplementedAlert {
[self showAlert:NSLocalizedString(@"This page is currently not implemented yet. None of these options work.", @"VMConfigViewController") completion:nil];
}

@end

0 comments on commit f470e85

Please sign in to comment.