Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tgcfoss committed Nov 28, 2023
1 parent 2405657 commit c532e13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/displayapp/screens/Page.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ namespace Pinetime {

class Page : public Screen {
public:
Page(uint8_t screenID, uint8_t numScreens, lv_obj_t* contentObj)
: contentObj {contentObj}, pageIndicator(screenID, numScreens) {
pageIndicator.Create();
Page(uint8_t screenID, uint8_t numScreens, lv_obj_t* contentObj) : contentObj {contentObj}, pageIndicator(screenID, numScreens) {
pageIndicator.Create();
}

~Page() override {
lv_obj_clean(lv_scr_act());
lv_obj_clean(lv_scr_act());
}

private:
Expand Down
7 changes: 2 additions & 5 deletions src/displayapp/screens/settings/SettingWakeUp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ namespace {
}
}

SettingWakeUp::SettingWakeUp(Pinetime::Applications::DisplayApp* app,
Pinetime::Controllers::Settings& settingsController)
: settingsController {settingsController}
, screens {app, 0, CreateScreenList(), Screens::ScreenListModes::UpDown} {
SettingWakeUp::SettingWakeUp(Pinetime::Applications::DisplayApp* app, Pinetime::Controllers::Settings& settingsController)
: settingsController {settingsController}, screens {app, 0, CreateScreenList(), Screens::ScreenListModes::UpDown} {
}


SettingWakeUp::~SettingWakeUp() {
lv_obj_clean(lv_scr_act());
settingsController.SaveSettings();
Expand Down
1 change: 0 additions & 1 deletion src/displayapp/screens/settings/SettingWakeUp.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace Pinetime {
bool OnTouchEvent(TouchEvents event) override;

private:

auto CreateScreenList();
std::unique_ptr<Screen> CreateScreen(size_t screenNum);

Expand Down

0 comments on commit c532e13

Please sign in to comment.