commit
8f194efdff
|
@ -129,7 +129,9 @@ void MainWindow::initFlashDisk()
|
|||
// init the screen
|
||||
screen = qApp->primaryScreen();
|
||||
|
||||
m_nAppStartTimestamp = QDateTime::currentDateTime().toMSecsSinceEpoch();
|
||||
QTimer::singleShot(NEWINFO_DELAYSHOW_TIME, [this] {
|
||||
m_bIsJustStarted = false;
|
||||
});
|
||||
m_dataFlashDisk = FlashDiskData::getInstance();
|
||||
}
|
||||
|
||||
|
@ -761,10 +763,11 @@ void MainWindow::getDeviceInfo()
|
|||
void MainWindow::onConvertShowWindow(QString strDriveId, QString strMountUri)
|
||||
{
|
||||
// 进程启动时一定时间内不弹窗提示
|
||||
if (QDateTime::currentDateTime().toMSecsSinceEpoch() - m_nAppStartTimestamp < NEWINFO_DELAYSHOW_TIME) {
|
||||
if (m_bIsJustStarted) {
|
||||
m_dataFlashDisk->resetAllNewState();
|
||||
return;
|
||||
}
|
||||
|
||||
insertorclick = true;
|
||||
|
||||
qDebug()<<"--------the frist insert--MainWindowShow----------";
|
||||
|
|
|
@ -123,7 +123,7 @@ private:
|
|||
FlashDiskData* m_dataFlashDisk = nullptr;
|
||||
bool m_bIsMouseInTraIcon = false;
|
||||
bool m_bIsMouseInCentral = false;
|
||||
qint64 m_nAppStartTimestamp = 0; // 进程启动时的时间戳
|
||||
bool m_bIsJustStarted = true;
|
||||
QString m_strSysRootDev;
|
||||
QMap<QString, FDFrame *> centralWidgetList;
|
||||
baseWidget * m_basewidget;
|
||||
|
|
Loading…
Reference in New Issue