pmt: fix getting adb status for reboot function

This commit is contained in:
2025-08-10 22:32:14 +03:00
parent 1340242e71
commit 70d4290cec

View File

@@ -113,7 +113,7 @@ int Main(int argc, char **argv) {
"(--search-path)");
if (!Helper::hasSuperUser()) {
if (!(FuncManager.isUsed("reboot") && Helper::hasAdbPermissions()))
if (!(FuncManager.isUsed("rebootFunction") && Helper::hasAdbPermissions()))
throw Error(
"Partition Manager Tool is requires super-user privileges!\n");
}