Skip to content

Commit

Permalink
fix for copying & pasting in CL
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Dec 4, 2024
1 parent fc63c64 commit a9ac6a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion extras/menus/arkMenu/src/browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@ void Browser::copyFolder(string path){
string destination = checkDestExists(path, this->cwd, f->getName().substr(0, f->getName().length()-1));

if (destination.size() == 0) return; // copy cancelled

if (destination[destination.size() - 1] == '/')
destination.resize(destination.length() - 1);

copy_folder_recursive(path.substr(0, path.length()-1).c_str(), destination.c_str());
}
Expand Down Expand Up @@ -1320,8 +1323,9 @@ void Browser::fillClipboard(){
this->clipboard->clear();
for (int i=0; i<entries->size(); i++){
BrowserFile* e = (File*)entries->at(i);
if (e->isSelected())
if (e->isSelected()) {
this->clipboard->push_back(e->getPath());
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion extras/menus/arkMenu/src/browser_entries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ void BrowserFile::changeSelection(){
}

string BrowserFile::getPath(){
return (shortname.size() > 0)? parent+shortname : path;
return path;
//return (shortname.size() > 0) ? parent+shortname : path + '/';
}

string BrowserFile::getName(){
Expand Down

0 comments on commit a9ac6a1

Please sign in to comment.