chore: remove button check

This commit is contained in:
ShootingStarDragons 2023-01-28 17:10:45 +08:00
parent c893dfd102
commit e84e2b0aaa

View file

@ -365,10 +365,8 @@ MainWindow::mousePressEvent(QMouseEvent *event)
{
#if defined(Q_OS_LINUX)
if (QGuiApplication::platformName() == "wayland") {
if (event->button() == Qt::LeftButton) {
emit hideMenu();
}
}
#endif
return QQuickView::mousePressEvent(event);
}