mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-26 04:17:50 +02:00
fixed file select and folder select widget bug
This commit is contained in:
@ -11,8 +11,8 @@ FileSelect::FileSelect(std::string defaultPath) {
|
||||
|
||||
bool FileSelect::render(std::string id) {
|
||||
bool _pathChanged = false;
|
||||
#ifdef _WIN32
|
||||
float menuColumnWidth = ImGui::GetContentRegionAvailWidth();
|
||||
#ifdef _WIN32
|
||||
float buttonWidth = ImGui::CalcTextSize("...").x + 20.0f;
|
||||
bool lastPathValid = pathValid;
|
||||
if (!lastPathValid) {
|
||||
|
@ -9,8 +9,8 @@ FolderSelect::FolderSelect(std::string defaultPath) {
|
||||
|
||||
bool FolderSelect::render(std::string id) {
|
||||
bool _pathChanged = false;
|
||||
#ifdef _WIN32
|
||||
float menuColumnWidth = ImGui::GetContentRegionAvailWidth();
|
||||
#ifdef _WIN32
|
||||
float buttonWidth = ImGui::CalcTextSize("...").x + 20.0f;
|
||||
bool lastPathValid = pathValid;
|
||||
if (!lastPathValid) {
|
||||
|
Reference in New Issue
Block a user