mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-15 11:17:01 +05:30
fix(clipboard): add pause between loop iterations
This commit is contained in:
parent
c698b9d509
commit
cb5f0b2f13
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
use crate::config::{Act, Match, Replacements};
|
use crate::config::{Act, Match, Replacements};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use copypasta::{ClipboardContext, ClipboardProvider};
|
use copypasta::{ClipboardContext, ClipboardProvider};
|
||||||
|
use std::time::Duration;
|
||||||
use tracing::{debug, error};
|
use tracing::{debug, error};
|
||||||
|
|
||||||
pub fn monitor(config: Replacements) -> Result<()> {
|
pub fn monitor(config: Replacements) -> Result<()> {
|
||||||
|
@ -22,5 +23,6 @@ pub fn monitor(config: Replacements) -> Result<()> {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
std::thread::sleep(Duration::from_millis(1_000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue