Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkTreasure1 committed Dec 15, 2023
1 parent 6d6e1a9 commit ee7909e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ void LauncherLayer::UI_DrawAboutModal()
Walnut::UI::ShiftCursorX(20.0f);

ImGui::BeginGroup();
ImGui::Text("Walnut application framework");
ImGui::Text("by Studio Cherno.");
ImGui::Text("Volt Launcher");
ImGui::Text("by Volt.");
ImGui::EndGroup();

if (Walnut::UI::ButtonCentered("Close"))
Expand Down Expand Up @@ -498,7 +498,7 @@ void LauncherLayer::UI_DrawEnginesContent()

if (ImGui::Button("Add"))
{
const std::string url = "https://github.com/ChunkTreasure1/Volt/releases/download/v0.1.2/Volt.zip";
const std::string url = "https://github.com/ChunkTreasure1/Volt/releases/latest/download/Volt.zip";
g_installProgress = 0.f;
m_isInstalling = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ void ConvertToWorldEngineModal::DrawModalContent()
}
}

Volt::AssetManager::SaveAsset(m_scene.GetSharedPtr());
if (Volt::AssetManager::ExistsInRegistry(m_scene->handle))
{
Volt::AssetManager::SaveAsset(m_scene.GetSharedPtr());
}
Close();
}

Expand Down
2 changes: 1 addition & 1 deletion Volt/Sandbox/src/Sandbox/Window/SceneSettingsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void SceneSettingsPanel::UpdateMainContent()

if (UI::BeginProperties("sceneSettings"))
{
if (UI::Property("Use World Engine", sceneSettings.useWorldEngine))
if (UI::Property("Use World Engine", sceneSettings.useWorldEngine) && sceneSettings.useWorldEngine)
{
ModalSystem::GetModal<ConvertToWorldEngineModal>(m_convertionModal).SetCurrentScene(m_editorScene);
ModalSystem::GetModal<ConvertToWorldEngineModal>(m_convertionModal).Open();
Expand Down

0 comments on commit ee7909e

Please sign in to comment.