also set current page during initialization

This commit is contained in:
Edward Shen 2020-09-07 16:02:21 -04:00
parent 79e132b007
commit 87f6b1eba1
Signed by: edward
GPG key ID: F350507060ED6C90

View file

@ -99,6 +99,7 @@ Module.register('MMM-pages', {
Log.log('[Pages]: received that all objects are created;'
+ 'will now hide things!');
this.sendNotification('MAX_PAGES_CHANGED', this.config.modules.length);
this.sendNotification('PAGE_CHANGED', this.curPage);
this.animatePageChange();
this.resetTimerWithDelay(0);
break;