summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-12-05 22:25:19 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-12-13 21:04:48 +0100
commit1b190166eb1295c6339f6100e4fbb92c81b81ea6 (patch)
tree6493cc3a385c67f079d52873b97963656cf084d2 /gui/action.cpp
parentSupport new AB OTA zips (diff)
downloadandroid_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.gz
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.bz2
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.lz
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.xz
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.tar.zst
android_bootable_recovery-1b190166eb1295c6339f6100e4fbb92c81b81ea6.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 223d75e25..8600186ee 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -228,6 +228,7 @@ GUIAction::GUIAction(xml_node<>* node)
ADD_ACTION(changefilesystem);
ADD_ACTION(flashimage);
ADD_ACTION(twcmd);
+ ADD_ACTION(setbootslot);
}
// First, get the action
@@ -1866,3 +1867,15 @@ int GUIAction::setlanguage(std::string arg __unused)
operation_end(op_status);
return 0;
}
+
+int GUIAction::setbootslot(std::string arg)
+{
+ operation_start("Set Boot Slot");
+ if (!simulate)
+ {
+ PartitionManager.Set_Active_Slot(arg);
+ } else
+ simulate_progress_bar();
+ operation_end(0);
+ return 0;
+}