Skip to content

Commit

Permalink
refactor: minor tidy in SelectFolderf
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed May 21, 2024
1 parent a1db79d commit 6c7fbb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/osdep/gui/SelectFolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,11 @@ class ListBoxActionListener : public gcn::ActionListener
public:
void action(const gcn::ActionEvent& actionEvent) override
{
std::string foldername = "";

const auto selected_item = lstFolders->getSelected();
foldername = workingDir.append("/").append(dirList.getElementAt(selected_item));
const std::string folder_name = workingDir.append("/").append(dirList.getElementAt(selected_item));

volName = dirList.getElementAt(selected_item);
checkfoldername(foldername);
checkfoldername(folder_name);
}
};

Expand Down

0 comments on commit 6c7fbb0

Please sign in to comment.