Skip to content

Commit

Permalink
fix: Fixed the issue where the clipboard may have no color value afte…
Browse files Browse the repository at this point in the history
…r absorbing color

  The color absorber delays exiting by 100ms so that the color values ​​can be stored in the clipboard normally.

Log: Fixed the issue where the clipboard may have no color value after absorbing color
Bug: https://pms.uniontech.com/bug-view-237007.html
  • Loading branch information
starhcq committed Feb 22, 2024
1 parent 6adc718 commit fb49c9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ void Clipboard::copyToClipboard(QColor color, QString colorType)
clipboard->setText(colorString);

// Quit application.
QApplication::quit();
QTimer::singleShot(100, this,[=](){
QApplication::quit();
});
}

0 comments on commit fb49c9b

Please sign in to comment.