Skip to content

Commit

Permalink
Enabling in other places too
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 committed Aug 20, 2023
1 parent 9dccd29 commit 24f6815
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ private void showAppendDialog(int keyId) {
@Override
public void onFsViewerConfig(GsFileBrowserOptions.Options dopt) {
dopt.rootFolder = startFolder;
dopt.newDirButtonEnable = false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ public void onFsViewerConfig(GsFileBrowserOptions.Options dopt) {
_doptMoC.titleText = isMove ? R.string.move : R.string.copy;
_doptMoC.rootFolder = _appSettings.getNotebookDirectory();
_doptMoC.startFolder = getCurrentFolder();
_doptMoC.newDirButtonEnable = true;
// Directories cannot be moved into themselves. Don't give users the option
final Set<String> selSet = new HashSet<>();
for (final File f : files) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static class Options {
homeButtonEnable = true,
cancelButtonEnable = true,
okButtonEnable = true,
newDirButtonEnable = false;
newDirButtonEnable = true;

public GsCallback.b2<Context, File> fileOverallFilter = (context, file) -> true;

Expand Down

0 comments on commit 24f6815

Please sign in to comment.