Skip to content

Commit

Permalink
place the placeholder to inform user to select folder
Browse files Browse the repository at this point in the history
We got this requirement to change the path to a placeholder text to inform the user.
  • Loading branch information
TSI-parulsharma committed Jul 13, 2023
1 parent 89acf76 commit bfe62ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gui/folderwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ FolderWizardLocalPath::FolderWizardLocalPath(const AccountPtr &account)
connect(_ui.localFolderChooseBtn, &QAbstractButton::clicked, this, &FolderWizardLocalPath::slotChooseLocalFolder);
_ui.localFolderChooseBtn->setToolTip(tr("Click to select a local folder to sync."));

QUrl serverUrl = _account->url();
serverUrl.setUserName(_account->credentials()->user());
QString defaultPath = QDir::homePath() + QLatin1Char('/') + Theme::instance()->appName();
defaultPath = FolderMan::instance()->findGoodPathForNewSyncFolder(defaultPath, serverUrl, FolderMan::GoodPathStrategy::AllowOnlyNewPath);
_ui.localFolderLineEdit->setText(QDir::toNativeSeparators(defaultPath));
_ui.localFolderLineEdit->setPlaceholderText(tr("Please select a folder"));;
_ui.localFolderLineEdit->setToolTip(tr("Enter the path to the local folder."));

_ui.warnLabel->setTextFormat(Qt::RichText);
Expand Down

0 comments on commit bfe62ef

Please sign in to comment.