We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38cd0bf commit fd63a53Copy full SHA for fd63a53
1 file changed
src/backend.cpp
@@ -69,10 +69,8 @@ void DevTools::setupPlatform() {
69
#endif
70
71
// define geode's clipboard funcs for imgui
72
- auto static read = geode::utils::clipboard::read();
73
ImGui::GetPlatformIO().Platform_GetClipboardTextFn = [](ImGuiContext* ctx) {
74
- read = geode::utils::clipboard::read();
75
- return read.c_str();
+ return geode::utils::clipboard::read().c_str();
76
};
77
ImGui::GetPlatformIO().Platform_SetClipboardTextFn = [](ImGuiContext* ctx, const char* text) {
78
geode::utils::clipboard::write(text);
0 commit comments