Skip to content

Commit 8a1725d

Browse files
committed
refactor: show HUD instead of toast for copy description
This reverts commit 8aba63e. Toasts will not appear if the comment section is maximized, which causes the user to not be notified the text was copied.
1 parent ea855f9 commit 8a1725d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/Features/General/CopyDescription.x‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
pasteboard.string = result;
4141

4242
// Notify user
43-
[SCIUtils showToastForDuration:2.5 title:@"Copied text to clipboard"];
43+
JGProgressHUD *HUD = [[JGProgressHUD alloc] init];
44+
HUD.textLabel.text = @"Copied text to clipboard";
45+
HUD.indicatorView = [[JGProgressHUDSuccessIndicatorView alloc] init];
46+
47+
[HUD showInView:topMostController().view];
48+
[HUD dismissAfterDelay:2.0];
4449
}
4550
%end

0 commit comments

Comments
 (0)