summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-05-30 21:52:16 +0200
committerEthan Yonker <dees_troy@teamw.in>2015-05-30 21:52:21 +0200
commitd6966f44267f53da876642522a9e705b0324072a (patch)
treea0d57e0332d8ccca9fdef18c8c643bf5e708ff4f /gui/action.cpp
parentremove useless memset and \n (diff)
downloadandroid_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.gz
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.bz2
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.lz
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.xz
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.tar.zst
android_bootable_recovery-d6966f44267f53da876642522a9e705b0324072a.zip
Diffstat (limited to '')
-rw-r--r--gui/action.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index fbd80dc94..97d95f170 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1798,7 +1798,7 @@ int GUIAction::mountsystemtoggle(std::string arg)
} else {
TWPartition* Part = PartitionManager.Find_Partition_By_Path("/system");
if (Part) {
- if (DataManager::GetIntValue("tw_mount_system_ro")) {
+ if (arg == "0") {
DataManager::SetValue("tw_mount_system_ro", 0);
Part->Change_Mount_Read_Only(false);
} else {