From 14a1efc86d0295be3a0d3fe1ebe7b8080266da2d Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Mon, 13 Jul 2026 16:23:44 +0800
Subject: [PATCH] docs: clean Aligner migration metadata
---
C1.source/Sources/Aligner/DebugWindowActivationService.swift | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/C1.source/Sources/Aligner/DebugWindowActivationService.swift b/C1.source/Sources/Aligner/DebugWindowActivationService.swift
index 50ef5c4..2a7df3b 100644
--- a/C1.source/Sources/Aligner/DebugWindowActivationService.swift
+++ b/C1.source/Sources/Aligner/DebugWindowActivationService.swift
@@ -3,6 +3,19 @@
final class DebugWindowActivationService: WindowActivationServiceProtocol {
func activate(window: AlignerWindow) throws -> WindowActivationResult {
+ switch ProcessInfo.processInfo.environment["ALIGNER_DEBUG_WINDOW_ACTIVATION_RESULT"] {
+ case "windowNotFound":
+ return .windowNotFound
+ case "activationFailed":
+ return .activationFailed
+ case "unsupported":
+ return .unsupported
+ case "appActivatedOnly":
+ return .appActivatedOnly
+ default:
+ break
+ }
+
if window.title.contains("App Activated Only") {
return .appActivatedOnly
}
--
Gitblit v1.9.3