diff --git a/QtScrcpy/QtScrcpyCore b/QtScrcpy/QtScrcpyCore index eb8b7837b..8e2cc1f3b 160000 --- a/QtScrcpy/QtScrcpyCore +++ b/QtScrcpy/QtScrcpyCore @@ -1 +1 @@ -Subproject commit eb8b7837b18d4d2c13276d90884feb7f1c37d7ba +Subproject commit 8e2cc1f3b17ad888b567ce05c5fe125bcaca0dd5 diff --git a/QtScrcpy/groupcontroller/groupcontroller.cpp b/QtScrcpy/groupcontroller/groupcontroller.cpp index fc7975108..24b3c8e51 100644 --- a/QtScrcpy/groupcontroller/groupcontroller.cpp +++ b/QtScrcpy/groupcontroller/groupcontroller.cpp @@ -262,7 +262,7 @@ void GroupController::postCut() } } -void GroupController::setScreenPowerMode(bool open) +void GroupController::setDisplayPower(bool on) { for (const auto& serial : m_devices) { if (true == isHost(serial)) { @@ -273,7 +273,7 @@ void GroupController::setScreenPowerMode(bool open) continue; } - device->setScreenPowerMode(open); + device->setDisplayPower(on); } } diff --git a/QtScrcpy/groupcontroller/groupcontroller.h b/QtScrcpy/groupcontroller/groupcontroller.h index bb2136dc5..f0a0f2bf2 100644 --- a/QtScrcpy/groupcontroller/groupcontroller.h +++ b/QtScrcpy/groupcontroller/groupcontroller.h @@ -31,7 +31,7 @@ class GroupController : public QObject, public qsc::DeviceObserver void postVolumeDown() override; void postCopy() override; void postCut() override; - void setScreenPowerMode(bool open) override; + void setDisplayPower(bool on) override; void expandNotificationPanel() override; void collapsePanel() override; void postBackOrScreenOn(bool down) override; diff --git a/QtScrcpy/ui/toolform.cpp b/QtScrcpy/ui/toolform.cpp index f9e0ba8d1..35614f704 100644 --- a/QtScrcpy/ui/toolform.cpp +++ b/QtScrcpy/ui/toolform.cpp @@ -186,7 +186,7 @@ void ToolForm::on_closeScreenBtn_clicked() if (!device) { return; } - device->setScreenPowerMode(false); + device->setDisplayPower(false); } void ToolForm::on_expandNotifyBtn_clicked() @@ -221,5 +221,5 @@ void ToolForm::on_openScreenBtn_clicked() if (!device) { return; } - device->setScreenPowerMode(true); + device->setDisplayPower(true); } diff --git a/QtScrcpy/ui/videoform.cpp b/QtScrcpy/ui/videoform.cpp index 085c847ea..5806f1d5d 100644 --- a/QtScrcpy/ui/videoform.cpp +++ b/QtScrcpy/ui/videoform.cpp @@ -290,7 +290,7 @@ void VideoForm::installShortcut() if (!device) { return; } - emit device->setScreenPowerMode(false); + emit device->setDisplayPower(false); }); // expandNotificationPanel