exit
This commit is contained in:
parent
dc55671191
commit
ceb426e1c0
1 changed files with 8 additions and 7 deletions
|
|
@ -368,14 +368,15 @@ class OpenRAGTUI(App):
|
||||||
|
|
||||||
def on_mount(self) -> None:
|
def on_mount(self) -> None:
|
||||||
"""Initialize the application."""
|
"""Initialize the application."""
|
||||||
# Check if running on native Windows and recommend WSL
|
# Check if running on native Windows and exit
|
||||||
if self.platform_detector.is_native_windows():
|
if self.platform_detector.is_native_windows():
|
||||||
notify_with_diagnostics(
|
print("\n" + "=" * 60)
|
||||||
self,
|
print("⚠️ Native Windows Not Supported")
|
||||||
"Running on native Windows. For best experience, use WSL. See diagnostics for details.",
|
print("=" * 60)
|
||||||
severity="warning",
|
print(self.platform_detector.get_wsl_recommendation())
|
||||||
timeout=15,
|
print("=" * 60 + "\n")
|
||||||
)
|
self.exit(1)
|
||||||
|
return
|
||||||
|
|
||||||
# Check for runtime availability and show appropriate screen
|
# Check for runtime availability and show appropriate screen
|
||||||
if not self.container_manager.is_available():
|
if not self.container_manager.is_available():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue