From a5e1906196e3f4d338aca4a4827296c897564123 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 17 Mar 2020 18:14:11 -0400 Subject: [PATCH] Fixed bug that prevented auto start from working --- src/app/main/main.component.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index 9c356ce..73ca33e 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -214,14 +214,6 @@ export class MainComponent implements OnInit { constructor(private postsService: PostsService, private youtubeSearch: YoutubeSearchService, public snackBar: MatSnackBar, private router: Router, public dialog: MatDialog, private platform: Platform, private route: ActivatedRoute) { this.audioOnly = false; - - this.configLoad(); - - this.postsService.settings_changed.subscribe(changed => { - if (changed) { - this.loadConfig(); - } - }); } async configLoad() { @@ -299,6 +291,14 @@ export class MainComponent implements OnInit { // app initialization. ngOnInit() { + this.configLoad(); + + this.postsService.settings_changed.subscribe(changed => { + if (changed) { + this.loadConfig(); + } + }); + this.iOS = this.platform.IOS; // get checkboxes