Fixed ever-expanding apply button in sdrplay source

This commit is contained in:
AlexandreRouma
2022-01-29 16:20:45 +01:00
parent 4fcd06eff6
commit 8dcf17bef7
2 changed files with 12 additions and 3 deletions

View File

@ -940,13 +940,13 @@ private:
}
SmGui::ForceSync();
if (SmGui::Button("Apply")) {
if (SmGui::Button("Apply", ImVec2(100, 0))) {
open = false;
valid = true;
}
SmGui::SameLine();
SmGui::ForceSync();
if (SmGui::Button("Cancel")) {
if (SmGui::Button("Cancel", ImVec2(100, 0))) {
open = false;
valid = false;
}