Skip to content

Commit

Permalink
Fix the live-previes message behaviour. It needs to be different to t…
Browse files Browse the repository at this point in the history
…he import result message. Still need to make UI layour for it better. Added 2 raw test files.
  • Loading branch information
bluescan committed Jun 30, 2024
1 parent 6f0e312 commit 391a41a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Src/ImportRaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,8 @@ bool Viewer::ShowImportRawOverlay(bool* popen, bool justOpened)
ImportRaw::ImportedDstFile.Clear();
if (!tSystem::tFileExists(profile.ImportRawFilename))
profile.ImportRawFilename.Clear();
}

if (ImportRaw::ImportedDstFile.IsValid())
message = profile.ImportRawLiveUpdate ? " Showing Live Preview" : "Showing Preview";
else
message.Clear();
}

if (Gutil::Button("Raw File", tVector2(buttonWidth, 0.0f)))
ImportRaw::SelectFileDialog.OpenPopup();
Expand All @@ -118,6 +114,10 @@ bool Viewer::ShowImportRawOverlay(bool* popen, bool justOpened)

ImGui::SameLine();
ImGui::Text(importName.Chr());
if (ImportRaw::ImportedDstFile.IsValid())
{
ImGui::Text(profile.ImportRawLiveUpdate ? "Live Preview" : "Preview");
}
}

bool liveUpdated = false;
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 391a41a

Please sign in to comment.