mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
ui: Allow clicking snapshot Create button without name
This commit is contained in:
parent
f62bfc95e3
commit
d7cbda5081
@ -944,8 +944,8 @@ void MainMenuSnapshotsView::Draw()
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button(snapshot_with_create_name_exists ? "Save" : "Create") && !m_create_buf.empty()) {
|
||||
xemu_snapshots_save(m_create_buf.c_str(), NULL);
|
||||
if (ImGui::Button(snapshot_with_create_name_exists ? "Save" : "Create")) {
|
||||
xemu_snapshots_save(m_create_buf.empty() ? NULL : m_create_buf.c_str(), NULL);
|
||||
m_create_buf.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user