Merge branch 'master' into feature/Moar-patch-bank-support-part3

This commit is contained in:
James Alan Nguyen 2022-05-17 11:36:34 +10:00
commit ec80a2218c
7 changed files with 18 additions and 8 deletions

View file

@ -1221,9 +1221,9 @@ void FurnaceGUI::openFileDialog(FurnaceGUIFileDialogs type) {
if (!dirExists(workingDirSong)) workingDirSong=getHomeDir();
hasOpened=fileDialog->openLoad(
"Open File",
{"compatible files", "*.fur *.dmf *.mod *.ftm",
{"compatible files", "*.fur *.dmf *.mod",
"all files", ".*"},
"compatible files{.fur,.dmf,.mod,.ftm},.*",
"compatible files{.fur,.dmf,.mod},.*",
workingDirSong,
dpiScale
);
@ -3566,7 +3566,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) {