mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-29 06:11:47 +00:00
FullscreenUI: Fix incorrect parent directory button
This commit is contained in:
parent
37efd34a99
commit
ad4a909aa4
@ -325,7 +325,7 @@ void GPUBackend::ReleaseQueuedFrame()
|
|||||||
if (s_cpu_thread_state.wait_state.compare_exchange_strong(expected, CPUThreadState::WAIT_GPU_THREAD_SIGNALING,
|
if (s_cpu_thread_state.wait_state.compare_exchange_strong(expected, CPUThreadState::WAIT_GPU_THREAD_SIGNALING,
|
||||||
std::memory_order_acq_rel, std::memory_order_acquire))
|
std::memory_order_acq_rel, std::memory_order_acquire))
|
||||||
{
|
{
|
||||||
if (g_settings.gpu_max_queued_frames > 0)
|
if (g_gpu_settings.gpu_max_queued_frames > 0)
|
||||||
DEV_LOG("--> Unblocking CPU thread");
|
DEV_LOG("--> Unblocking CPU thread");
|
||||||
|
|
||||||
s_cpu_thread_state.gpu_thread_wait.Post();
|
s_cpu_thread_state.gpu_thread_wait.Post();
|
||||||
|
@ -3148,7 +3148,7 @@ void ImGuiFullscreen::FileSelectorDialog::Draw()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ImGui::IsKeyPressed(ImGuiKey_Backspace, false) || ImGui::IsKeyPressed(ImGuiKey_NavGamepadMenu, false))
|
if (ImGui::IsKeyPressed(ImGuiKey_Backspace, false) || ImGui::IsKeyPressed(ImGuiKey_NavGamepadInput, false))
|
||||||
{
|
{
|
||||||
if (!m_items.empty() && m_first_item_is_parent_directory)
|
if (!m_items.empty() && m_first_item_is_parent_directory)
|
||||||
SetDirectory(std::move(m_items.front().full_path));
|
SetDirectory(std::move(m_items.front().full_path));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user