From dac2fdb664a40b1a12e1fe3437c0a732d63ea784 Mon Sep 17 00:00:00 2001 From: henry9610 Date: Tue, 10 Sep 2024 16:46:00 +0800 Subject: [PATCH] Modify the database name in the starred password entry prompt. --- seafile/SeafStarredFilesViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seafile/SeafStarredFilesViewController.m b/seafile/SeafStarredFilesViewController.m index a64f0251..a9dbb294 100644 --- a/seafile/SeafStarredFilesViewController.m +++ b/seafile/SeafStarredFilesViewController.m @@ -518,7 +518,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath //check if is encrypted if ([(SeafRepo *)entry passwordRequiredWithSyncRefresh]){ - SeafRepo *repo = [[SeafRepo alloc] initWithConnection:starredRepo->connection andRepoId:starredRepo.repoId andRepoName:starredRepo.name]; + SeafRepo *repo = [[SeafRepo alloc] initWithConnection:starredRepo->connection andRepoId:starredRepo.repoId andRepoName:starredRepo.repoName]; @weakify(self); [self popupSetRepoPassword:(SeafRepo *)repo handler:^{ @strongify(self); @@ -539,7 +539,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath if ([(SeafRepo *)entry passwordRequiredWithSyncRefresh]){ Debug("Star file %@ repo %@ password required.", sfile.name, sfile.repoId); - SeafRepo *repo = [[SeafRepo alloc] initWithConnection:sfile->connection andRepoId:sfile.repoId andRepoName:sfile.name]; + SeafRepo *repo = [[SeafRepo alloc] initWithConnection:sfile->connection andRepoId:sfile.repoId andRepoName:sfile.repoName]; @weakify(self); [self popupSetRepoPassword:(SeafRepo *)repo handler:^{ @strongify(self); @@ -744,7 +744,7 @@ - (void)locateToTargetPathFromIndex:(NSInteger)cellIndex { return; } if ([(SeafRepo *)entry passwordRequiredWithSyncRefresh]){ - SeafRepo *repo = [[SeafRepo alloc] initWithConnection:entry->connection andRepoId:entry.repoId andRepoName:entry.name]; + SeafRepo *repo = [[SeafRepo alloc] initWithConnection:entry->connection andRepoId:entry.repoId andRepoName:entry.repoName]; @weakify(self); return [self popupSetRepoPassword:repo handler:^{ @strongify(self);