Skip to content

Commit

Permalink
fix: 修复大窗口关闭看图后,改变增加缩放比后,打开看图无法看到看图标题栏问题
Browse files Browse the repository at this point in the history
修复大窗口关闭看图后,改变增加缩放比后,打开看图无法看到看图标题栏问题

Bug: https://pms.uniontech.com/bug-view-298659.html
Log: 修复大窗口关闭看图后,改变增加缩放比后,打开看图无法看到看图标题栏问题
  • Loading branch information
myk1343 committed Jan 8, 2025
1 parent 7090958 commit ef8e4e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ int main(int argc, char *argv[])
//修复窗口会一直在中间变小的问题
if (checkOnly()) {
Dtk::Widget::moveToCenter(mainwindow);
QPoint pt = mainwindow->geometry().topLeft();
if(pt.x() < 0 || pt.y() < 0) {
mainwindow->move(0, 0);
}
}

QObject::connect(dApp, &Application::sigQuit, w, &MainWindow::quitApp, Qt::DirectConnection);
Expand Down

0 comments on commit ef8e4e9

Please sign in to comment.