Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add username to daemon #1544

Merged
merged 3 commits into from
Jun 28, 2024
Merged

Add username to daemon #1544

merged 3 commits into from
Jun 28, 2024

Conversation

feiniks
Copy link
Contributor

@feiniks feiniks commented Jun 20, 2024

No description provided.

@@ -208,6 +208,8 @@ bool CreateRepoDialog::validateInputs()
void CreateRepoDialog::createSuccess(const RepoDownloadInfo& info)
{
QString error;
QString username = account_.accountInfo.name;
QString more_info = rebuildMoreInfo(info.more_info, "username", toCStr(username));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以在 DownloadRepoRequest 里面统一把 username 信息填入,这样就不用在多个地方 rebuildMoreInfo 了。

@@ -99,4 +99,6 @@ const QRect getScreenSize(int index);

QString trimNULL(QString& s);

QString rebuildMoreInfo (const QString& more_info, const char *key, const char *value);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以删掉了吧。

@killing killing merged commit 75f394a into master Jun 28, 2024
@killing killing deleted the add_username branch June 28, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants