Skip to content

Commit bf266c5

Browse files
committed
Increase UI output character limit to 50,000 and update output copying logic to use full output text
1 parent c118769 commit bf266c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use stitch::core::{
3333
};
3434

3535
#[cfg(feature = "ui")]
36-
const UI_OUTPUT_CHAR_LIMIT: usize = 10_000;
36+
const UI_OUTPUT_CHAR_LIMIT: usize = 50_000;
3737

3838
#[cfg(feature = "ui")]
3939
#[derive(Default)]
@@ -452,7 +452,8 @@ fn on_generate_output(app: &AppWindow, state: &Rc<RefCell<AppState>>) {
452452

453453
#[cfg(feature = "ui")]
454454
fn on_copy_output(app: &AppWindow, state: &Rc<RefCell<AppState>>) {
455-
let text = app.get_output_text().to_string();
455+
let text = { state.borrow().full_output_text.clone() };
456+
456457
if text.is_empty() {
457458
app.set_copy_toast_text("Nothing to copy".into());
458459
app.set_show_copy_toast(true);

0 commit comments

Comments
 (0)