Skip to content

Commit

Permalink
fixed a typo in the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Sep 17, 2023
1 parent 8965b1f commit ad236ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions client/ui/controllers/pageController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,30 +118,30 @@ void PageController::showOnStartup()

void PageController::updateDrawerRootPage(PageLoader::PageEnum page)
{
m_drwaerLayer = 0;
m_drawerLayer = 0;
m_currentRootPage = page;
}

void PageController::goToDrawerRootPage()
{

m_drwaerLayer = 0;
m_drawerLayer = 0;

emit showTopCloseButton(false);
emit forceCloseDrawer();
}

void PageController::drawerOpen()
{
m_drwaerLayer = m_drwaerLayer + 1;
m_drawerLayer = m_drawerLayer + 1;
emit showTopCloseButton(true);
}

void PageController::drawerClose()
{
m_drwaerLayer = m_drwaerLayer -1;
if (m_drwaerLayer <= 0) {
m_drawerLayer = m_drawerLayer -1;
if (m_drawerLayer <= 0) {
emit showTopCloseButton(false);
m_drwaerLayer = 0;
m_drawerLayer = 0;
}
}
2 changes: 1 addition & 1 deletion client/ui/controllers/pageController.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public slots:
std::shared_ptr<Settings> m_settings;

PageLoader::PageEnum m_currentRootPage;
int m_drwaerLayer;
int m_drawerLayer;
};

#endif // PAGECONTROLLER_H

0 comments on commit ad236ba

Please sign in to comment.