merges: allow user to perform snapshot merges in advanced menu
Change-Id: I894a0ef5a0ec8e208053358f09a6b8a6d4ee408a
diff --git a/gui/action.cpp b/gui/action.cpp
index 464ed27..9672751 100755
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -245,6 +245,7 @@
#ifndef TW_EXCLUDE_NANO
ADD_ACTION(editfile);
#endif
+ ADD_ACTION(mergesnapshots);
}
// First, get the action
@@ -2351,3 +2352,12 @@
operation_end((int)!ret);
return 0;
}
+
+int GUIAction::mergesnapshots(string arg __unused) {
+ int op_status = 1;
+ if (PartitionManager.Check_Pending_Merges()) {
+ op_status = 0;
+ }
+ operation_end(op_status);
+ return 0;
+}
\ No newline at end of file