feat(tier4): Add 5-second delay before showing patch modal so user can see it
This commit is contained in:
@@ -877,6 +877,12 @@ class App:
|
||||
def _render_patch_modal(self) -> None:
|
||||
if not self._show_patch_modal:
|
||||
return
|
||||
import time
|
||||
if not hasattr(self, '_patch_modal_open_time'):
|
||||
self._patch_modal_open_time = time.time()
|
||||
elif time.time() - self._patch_modal_open_time < 5.0:
|
||||
return
|
||||
self._patch_modal_open_time = None
|
||||
imgui.open_popup("Apply Patch?")
|
||||
if imgui.begin_popup_modal("Apply Patch?", True, imgui.ImVec2(600, 500))[0]:
|
||||
imgui.text_colored(imgui.ImVec4(1, 0.9, 0.3, 1), "Tier 4 QA Generated a Patch")
|
||||
|
||||
Reference in New Issue
Block a user