Skip to content

Commit

Permalink
fixed profiles page redraw
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 19, 2019
1 parent 5d2840e commit d657521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eez/apps/psu/gui/page_user_profiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ void UserProfilesPage::pageAlloc() {
}
}

void UserProfilesPage::pageFree() {
g_selectedProfileLocation = -1;
}

void UserProfilesPage::showProfile() {
g_selectedProfileLocation = getFoundWidgetAtDown().cursor.i;
pushPage(g_selectedProfileLocation == 0 ? PAGE_ID_USER_PROFILE_0_SETTINGS
Expand Down
1 change: 1 addition & 0 deletions src/eez/apps/psu/gui/page_user_profiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extern int g_selectedProfileLocation;
class UserProfilesPage : public Page {
public:
void pageAlloc();
void pageFree();

void showProfile();

Expand Down

0 comments on commit d657521

Please sign in to comment.