Clock : initialize the actual clockface in initialization list instead of in the core of the ctro().
This commit is contained in:
parent
17c6583937
commit
d7962617e4
|
@ -32,25 +32,18 @@ Clock::Clock(DisplayApp* app,
|
||||||
notificatioManager {notificatioManager},
|
notificatioManager {notificatioManager},
|
||||||
settingsController {settingsController},
|
settingsController {settingsController},
|
||||||
heartRateController {heartRateController},
|
heartRateController {heartRateController},
|
||||||
motionController {motionController} {
|
motionController {motionController},
|
||||||
|
screen {[this, &settingsController]() {
|
||||||
switch (settingsController.GetClockFace()) {
|
switch (settingsController.GetClockFace()) {
|
||||||
case 0:
|
case 0:
|
||||||
screen = WatchFaceDigitalScreen();
|
return WatchFaceDigitalScreen();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
screen = WatchFaceAnalogScreen();
|
return WatchFaceAnalogScreen();
|
||||||
break;
|
break;
|
||||||
/*
|
}
|
||||||
// Examples for more watch faces
|
return WatchFaceDigitalScreen();
|
||||||
case 2:
|
}()} {
|
||||||
screen = WatchFaceMinimalScreen();
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
screen = WatchFaceCustomScreen();
|
|
||||||
break;
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
settingsController.SetAppMenu(0);
|
settingsController.SetAppMenu(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue