mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-29 10:23:19 +03:00
Fixed bug that prevented auto start from working
This commit is contained in:
@@ -214,14 +214,6 @@ export class MainComponent implements OnInit {
|
|||||||
constructor(private postsService: PostsService, private youtubeSearch: YoutubeSearchService, public snackBar: MatSnackBar,
|
constructor(private postsService: PostsService, private youtubeSearch: YoutubeSearchService, public snackBar: MatSnackBar,
|
||||||
private router: Router, public dialog: MatDialog, private platform: Platform, private route: ActivatedRoute) {
|
private router: Router, public dialog: MatDialog, private platform: Platform, private route: ActivatedRoute) {
|
||||||
this.audioOnly = false;
|
this.audioOnly = false;
|
||||||
|
|
||||||
this.configLoad();
|
|
||||||
|
|
||||||
this.postsService.settings_changed.subscribe(changed => {
|
|
||||||
if (changed) {
|
|
||||||
this.loadConfig();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async configLoad() {
|
async configLoad() {
|
||||||
@@ -299,6 +291,14 @@ export class MainComponent implements OnInit {
|
|||||||
|
|
||||||
// app initialization.
|
// app initialization.
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.configLoad();
|
||||||
|
|
||||||
|
this.postsService.settings_changed.subscribe(changed => {
|
||||||
|
if (changed) {
|
||||||
|
this.loadConfig();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
this.iOS = this.platform.IOS;
|
this.iOS = this.platform.IOS;
|
||||||
|
|
||||||
// get checkboxes
|
// get checkboxes
|
||||||
|
|||||||
Reference in New Issue
Block a user