mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-25 18:59:06 +00:00
fix: system tray bug
This commit is contained in:
parent
55639f1625
commit
9fd26b0583
2 changed files with 1 additions and 8 deletions
|
@ -101,7 +101,7 @@ Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog)
|
||||||
m_menu->addAction(m_quit);
|
m_menu->addAction(m_quit);
|
||||||
m_hideIcon->setContextMenu(m_menu);
|
m_hideIcon->setContextMenu(m_menu);
|
||||||
m_hideIcon->show();
|
m_hideIcon->show();
|
||||||
connect(m_showWindow, &QAction::triggered, this, &Dialog::slotShow);
|
connect(m_showWindow, &QAction::triggered, this, &Dialog::show);
|
||||||
connect(m_quit, &QAction::triggered, this, [this]() {
|
connect(m_quit, &QAction::triggered, this, [this]() {
|
||||||
m_hideIcon->hide();
|
m_hideIcon->hide();
|
||||||
qApp->quit();
|
qApp->quit();
|
||||||
|
@ -238,12 +238,6 @@ QString Dialog::getGameScript(const QString &fileName)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Dialog::slotShow()
|
|
||||||
{
|
|
||||||
this->show();
|
|
||||||
m_hideIcon->hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Dialog::slotActivated(QSystemTrayIcon::ActivationReason reason)
|
void Dialog::slotActivated(QSystemTrayIcon::ActivationReason reason)
|
||||||
{
|
{
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
|
|
|
@ -64,7 +64,6 @@ private:
|
||||||
void execAdbCmd();
|
void execAdbCmd();
|
||||||
void delayMs(int ms);
|
void delayMs(int ms);
|
||||||
QString getGameScript(const QString &fileName);
|
QString getGameScript(const QString &fileName);
|
||||||
void slotShow();
|
|
||||||
void slotActivated(QSystemTrayIcon::ActivationReason reason);
|
void slotActivated(QSystemTrayIcon::ActivationReason reason);
|
||||||
int findDeviceFromeSerialBox(bool wifi);
|
int findDeviceFromeSerialBox(bool wifi);
|
||||||
quint32 getBitRate();
|
quint32 getBitRate();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue