mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-25 02:39:05 +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_hideIcon->setContextMenu(m_menu);
|
||||
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]() {
|
||||
m_hideIcon->hide();
|
||||
qApp->quit();
|
||||
|
@ -238,12 +238,6 @@ QString Dialog::getGameScript(const QString &fileName)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void Dialog::slotShow()
|
||||
{
|
||||
this->show();
|
||||
m_hideIcon->hide();
|
||||
}
|
||||
|
||||
void Dialog::slotActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
{
|
||||
switch (reason) {
|
||||
|
|
|
@ -64,7 +64,6 @@ private:
|
|||
void execAdbCmd();
|
||||
void delayMs(int ms);
|
||||
QString getGameScript(const QString &fileName);
|
||||
void slotShow();
|
||||
void slotActivated(QSystemTrayIcon::ActivationReason reason);
|
||||
int findDeviceFromeSerialBox(bool wifi);
|
||||
quint32 getBitRate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue