Empfang V4: Auth, Praxis-Tenant, Cockpit, Caddy-Rewrite
Made-with: Cursor
This commit is contained in:
@@ -5405,19 +5405,30 @@ WICHTIG unbedingt einhalten:
|
||||
_started = [time.time()]
|
||||
_mouse_was_pressed = [False]
|
||||
|
||||
_press_time = [0.0]
|
||||
|
||||
def _on_click(x, y, button, pressed):
|
||||
if button != MouseButton.left:
|
||||
return
|
||||
if pressed:
|
||||
if time.time() - _started[0] > 0.3:
|
||||
_mouse_was_pressed[0] = True
|
||||
_press_time[0] = time.time()
|
||||
return
|
||||
if not _mouse_was_pressed[0]:
|
||||
return
|
||||
_mouse_was_pressed[0] = False
|
||||
hold_duration = time.time() - _press_time[0]
|
||||
was_drag = hold_duration > 0.20
|
||||
|
||||
time.sleep(0.05)
|
||||
try:
|
||||
kbd = KbdController()
|
||||
if not was_drag:
|
||||
from pynput.mouse import Controller as MController
|
||||
mc = MController()
|
||||
mc.click(MouseButton.left, 2)
|
||||
time.sleep(0.1)
|
||||
with kbd.pressed(Key.ctrl):
|
||||
kbd.tap(KeyCode.from_char('c'))
|
||||
except Exception:
|
||||
@@ -5827,6 +5838,8 @@ WICHTIG unbedingt einhalten:
|
||||
values=["Alle"], width=18, state="readonly")
|
||||
_rcpt_combo.pack(side="left")
|
||||
|
||||
_rcpt_refresh_job = [None]
|
||||
|
||||
def _refresh_recipients():
|
||||
try:
|
||||
bu = self.get_backend_url()
|
||||
@@ -5840,7 +5853,15 @@ WICHTIG unbedingt einhalten:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
threading.Thread(target=_refresh_recipients, daemon=True).start()
|
||||
def _periodic_refresh_recipients():
|
||||
threading.Thread(target=_refresh_recipients, daemon=True).start()
|
||||
try:
|
||||
if dlg.winfo_exists():
|
||||
_rcpt_refresh_job[0] = dlg.after(15000, _periodic_refresh_recipients)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
_periodic_refresh_recipients()
|
||||
|
||||
# --- Senden ---
|
||||
def do_send():
|
||||
|
||||
Reference in New Issue
Block a user