summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-08-08 18:03:51 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-08-09 14:49:35 +0200
commit03a42f6c6afc69919544c6dbe0fce49637ec17df (patch)
treef47a227f97e67e0ce61d00b6cea427aa0c59de95 /gui/pages.cpp
parentSet font based on resolution if not set already (diff)
downloadandroid_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.tar
android_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.tar.gz
android_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.tar.bz2
android_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.tar.lz
android_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.tar.xz
android_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.tar.zst
android_bootable_recovery-03a42f6c6afc69919544c6dbe0fce49637ec17df.zip
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r--gui/pages.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 72ffda3d5..3632cc311 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -1110,6 +1110,16 @@ int PageManager::SwitchToConsole(void)
return 0;
}
+int PageManager::EndConsole(void)
+{
+ if (mCurrentSet && mBaseSet) {
+ delete mCurrentSet;
+ mCurrentSet = mBaseSet;
+ return 0;
+ }
+ return -1;
+}
+
int PageManager::IsCurrentPage(Page* page)
{
return (mCurrentSet ? mCurrentSet->IsCurrentPage(page) : 0);