Skip to content

Commit

Permalink
chore: another thank you
Browse files Browse the repository at this point in the history
  • Loading branch information
khcrysalis committed Nov 6, 2024
1 parent 6cb0d97 commit 274808f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions iOS/Views/Sources/SourcesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ extension SourcesViewController {
let source = sources[indexPath.row]

cell.textLabel?.text = source.name ?? String.localized("UNKNOWN")
cell.detailTextLabel?.text = source.sourceURL?.absoluteString

if source.identifier == "kh.crysalis.feather-repo.beta" {
cell.detailTextLabel?.text = "Thank you for donating!"
} else {
cell.detailTextLabel?.text = source.sourceURL?.absoluteString
}

if let thumbnailURL = source.iconURL {
SectionIcons.loadSectionImageFromURL(from: thumbnailURL, for: cell, at: indexPath, in: tableView)
Expand All @@ -144,7 +149,11 @@ extension SourcesViewController {
let configuration = UIContextMenuConfiguration(identifier: nil, actionProvider: { _ in
return UIMenu(title: "", image: nil, identifier: nil, options: [], children: [
UIAction(title: String.localized("COPY"), image: UIImage(systemName: "doc.on.clipboard"), handler: {_ in
UIPasteboard.general.string = source.sourceURL?.absoluteString
if source.identifier == "kh.crysalis.feather-repo.beta" {
UIPasteboard.general.string = "Thank you for donating!"
} else {
UIPasteboard.general.string = source.sourceURL?.absoluteString
}
})
])
})
Expand Down

0 comments on commit 274808f

Please sign in to comment.