Calculator: Fix copy button not copying the fractional part bug :^)

This commit is contained in:
Musab Kılıç 2021-10-29 20:08:58 +03:00 committed by Andreas Kling
parent 8936d15efa
commit 2ef8cbe6cf
Notes: sideshowbarker 2024-07-18 01:42:50 +09:00

View file

@ -62,7 +62,7 @@ int main(int argc, char** argv)
if (clipboard.mime_type == "text/plain") {
if (!clipboard.data.is_empty()) {
auto data = atof(StringView(clipboard.data).to_string().characters());
widget.set_entry(data);
widget.set_entry(KeypadValue { data });
}
}
}));