Skip to content

Commit

Permalink
Merge pull request #1449 from ziqidong/master
Browse files Browse the repository at this point in the history
status bar prompt
  • Loading branch information
legobadman authored Sep 27, 2023
2 parents da20ba9 + adfce16 commit 911498e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file modified ui/zenoedit/res/languages/zh.qm
Binary file not shown.
8 changes: 8 additions & 0 deletions ui/zenoedit/res/languages/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2547,6 +2547,14 @@
<message>
<source>Status Bar</source>
<translation type="unfinished">状态栏</translation>
</message>
<message>
<source>File Saved</source>
<translation>文件已保存</translation>
</message>
<message>
<source>File Opened</source>
<translation>文件已打开</translation>
</message>
<message>
<source>layout format is invalid.</source>
Expand Down
6 changes: 6 additions & 0 deletions ui/zenoedit/zenomainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@ bool ZenoMainWindow::openFile(QString filePath)
recordRecentFile(filePath);
initUserdata(pGraphs->userdataInfo());
//resetDocks(pGraphs->layoutInfo().layerOutNode);

m_ui->statusbar->showMessage(tr("File Opened"));
zeno::scope_exit sp([&]() {QTimer::singleShot(2000, this, [=]() {m_ui->statusbar->showMessage(tr("Status Bar")); }); });
return true;
}

Expand Down Expand Up @@ -1978,6 +1981,9 @@ bool ZenoMainWindow::saveFile(QString filePath)
settings.userdataInfo.optix_show_background = ud.get2<bool>("optix_show_background", false);
zenoApp->graphsManagment()->saveFile(filePath, settings);
recordRecentFile(filePath);

m_ui->statusbar->showMessage(tr("File Saved"));
zeno::scope_exit sp([&]() {QTimer::singleShot(2000, this, [=]() {m_ui->statusbar->showMessage(tr("Status Bar")); }); });
return true;
}

Expand Down

0 comments on commit 911498e

Please sign in to comment.