GUI: make backupTimer atomic
This commit is contained in:
parent
409d3c26af
commit
c5259066e1
2 changed files with 2 additions and 2 deletions
|
|
@ -3550,7 +3550,7 @@ bool FurnaceGUI::loop() {
|
|||
// backup trigger
|
||||
if (modified) {
|
||||
if (backupTimer>0) {
|
||||
backupTimer-=ImGui::GetIO().DeltaTime;
|
||||
backupTimer=(backupTimer-ImGui::GetIO().DeltaTime);
|
||||
if (backupTimer<=0) {
|
||||
backupTask=std::async(std::launch::async,[this]() -> bool {
|
||||
if (backupPath==curFileName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue