mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-04 15:05:02 -06:00
Prevent opening duplicate windows of a shader dump (#4512)
This commit is contained in:
parent
0b9eb3dd17
commit
e777f56964
@ -269,7 +269,10 @@ void ShaderList::Draw() {
|
||||
snprintf(name, sizeof(name), "%s", shader.name.c_str());
|
||||
}
|
||||
if (ButtonEx(name, {width, 20.0f}, ImGuiButtonFlags_NoHoveredOnFocus)) {
|
||||
open_shaders.emplace_back(i);
|
||||
if (std::find_if(open_shaders.begin(), open_shaders.end(),
|
||||
[i](auto& v) { return v.index == i; }) == open_shaders.end()) {
|
||||
open_shaders.emplace_back(i);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user