Skip to content

Commit ec5f413

Browse files
authored
Merge pull request #1073 from barry-ran/dev
sync dev
2 parents 0a98712 + 16d693a commit ec5f413

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

QtScrcpy/groupcontroller/groupcontroller.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void GroupController::postCut()
262262
}
263263
}
264264

265-
void GroupController::setScreenPowerMode(bool open)
265+
void GroupController::setDisplayPower(bool on)
266266
{
267267
for (const auto& serial : m_devices) {
268268
if (true == isHost(serial)) {
@@ -273,7 +273,7 @@ void GroupController::setScreenPowerMode(bool open)
273273
continue;
274274
}
275275

276-
device->setScreenPowerMode(open);
276+
device->setDisplayPower(on);
277277
}
278278
}
279279

QtScrcpy/groupcontroller/groupcontroller.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class GroupController : public QObject, public qsc::DeviceObserver
3131
void postVolumeDown() override;
3232
void postCopy() override;
3333
void postCut() override;
34-
void setScreenPowerMode(bool open) override;
34+
void setDisplayPower(bool on) override;
3535
void expandNotificationPanel() override;
3636
void collapsePanel() override;
3737
void postBackOrScreenOn(bool down) override;

QtScrcpy/ui/toolform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void ToolForm::on_closeScreenBtn_clicked()
186186
if (!device) {
187187
return;
188188
}
189-
device->setScreenPowerMode(false);
189+
device->setDisplayPower(false);
190190
}
191191

192192
void ToolForm::on_expandNotifyBtn_clicked()
@@ -221,5 +221,5 @@ void ToolForm::on_openScreenBtn_clicked()
221221
if (!device) {
222222
return;
223223
}
224-
device->setScreenPowerMode(true);
224+
device->setDisplayPower(true);
225225
}

QtScrcpy/ui/videoform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void VideoForm::installShortcut()
290290
if (!device) {
291291
return;
292292
}
293-
emit device->setScreenPowerMode(false);
293+
emit device->setDisplayPower(false);
294294
});
295295

296296
// expandNotificationPanel

ci/mac/build_for_mac.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi
5858
mkdir $build_path
5959
cd $build_path
6060

61-
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64"
61+
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64 -D CMAKE_OSX_DEPLOYMENT_TARGET=10.10"
6262
cmake $cmake_params ../..
6363
if [ $? -ne 0 ] ;then
6464
echo "cmake failed"

0 commit comments

Comments
 (0)