Skip to content

Commit 5886a6b

Browse files
committed
Bugfix auto-toggle
1 parent ca0f2b8 commit 5886a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ClipAI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ def toggle_auto_refresh(self):
216216

217217
def monitor_clipboard(self):
218218
"""Continuously monitor clipboard for changes"""
219-
last_content = pyperclip.paste()
219+
last_content = self.text_box.get('1.0', tk.END)
220220

221221
while self.auto_refresh:
222-
current_content = self.text_box.get('1.0', tk.END)
222+
current_content = pyperclip.paste()
223223

224224
if current_content != last_content:
225225
last_content = current_content

0 commit comments

Comments
 (0)