File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,6 @@ - (NSString *)hackfoldrPageKey
81
81
82
82
if (!pageKey || pageKey.length == 0 ) {
83
83
NSString *defaultPage = @" hackfoldr-iOS" ;
84
- #if DEBUG
85
- defaultPage = @" welcome-to-hackfoldr" ;
86
- #endif
87
84
88
85
[[NSUserDefaults standardUserDefaults ] setDefaultHackfoldrPage: defaultPage];
89
86
[[NSUserDefaults standardUserDefaults ] synchronize ];
@@ -175,12 +172,27 @@ - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)butto
175
172
176
173
#pragma mark - Actions
177
174
178
- - (void )showListViewController {
175
+ - (void )showListViewController
176
+ {
177
+ // When List view is showed, don't show again
178
+ for (UIViewController *vc in self.navigationController .viewControllers ) {
179
+ if ([vc isKindOfClass: [self .listViewController class ]]) {
180
+ return ;
181
+ }
182
+ }
183
+
179
184
[self .navigationController pushViewController: self .listViewController animated: YES ];
180
185
}
181
186
182
187
- (void )showSettingViewController
183
188
{
189
+ // When Setting view is showed, don't show again
190
+ for (QuickDialogController *vc in self.navigationController .viewControllers ) {
191
+ if ([vc isKindOfClass: [QuickDialogController class ]]) {
192
+ return ;
193
+ }
194
+ }
195
+
184
196
QRootElement *settingRoot = [[QRootElement alloc ] init ];
185
197
settingRoot.title = NSLocalizedStringFromTable(@" Change Hackfoldr Page" , @" Hackfoldr" , @" Title of SettingView" );
186
198
settingRoot.grouped = YES ;
You can’t perform that action at this time.
0 commit comments