临时注释取消开发过程中的软件授权检测,需要配置文件中LicenseMode使用885

This commit is contained in:
QI Mingxuan
2026-06-04 16:20:01 +08:00
parent e1c4c78510
commit 504ef9fd33
+14 -13
View File
@@ -492,11 +492,11 @@ namespace XplorePlane
Application.Current.Dispatcher.Invoke(() =>
{
Log.Warning("临时测试模式剩余5分钟 | Temporary test mode: 5 minutes remaining");
MessageBox.Show(
"临时测试模式将在5分钟后到期,请尽快保存您的工作。\nTemporary test mode will expire in 5 minutes, please save your work.",
"测试模式提醒 | Test Mode Reminder",
MessageBoxButton.OK,
MessageBoxImage.Information);
//MessageBox.Show(
// "临时测试模式将在5分钟后到期,请尽快保存您的工作。\nTemporary test mode will expire in 5 minutes, please save your work.",
// "测试模式提醒 | Test Mode Reminder",
// MessageBoxButton.OK,
// MessageBoxImage.Information);
});
}
@@ -508,11 +508,11 @@ namespace XplorePlane
Application.Current.Dispatcher.Invoke(() =>
{
Log.Warning("临时测试模式剩余1分钟 | Temporary test mode: 1 minute remaining");
MessageBox.Show(
"临时测试模式将在1分钟后到期,软件即将关闭,请立即保存您的工作。\nTemporary test mode will expire in 1 minute, the software will shut down soon. Please save your work immediately.",
"测试模式即将到期 | Test Mode Expiring",
MessageBoxButton.OK,
MessageBoxImage.Warning);
//MessageBox.Show(
// "临时测试模式将在1分钟后到期,软件即将关闭,请立即保存您的工作。\nTemporary test mode will expire in 1 minute, the software will shut down soon. Please save your work immediately.",
// "测试模式即将到期 | Test Mode Expiring",
// MessageBoxButton.OK,
// MessageBoxImage.Warning);
});
}
@@ -523,9 +523,10 @@ namespace XplorePlane
{
Application.Current.Dispatcher.Invoke(() =>
{
Log.Warning("临时测试模式已超时,执行正常关闭流程 | Temporary test mode timed out, performing graceful shutdown");
// 使用正常关闭流程,确保资源正确释放 | Use graceful shutdown to ensure proper resource release
Application.Current.MainWindow?.Close();
Log.Warning("临时测试模式已超时,开发阶段不执行软件自动退出流程 | Temporary test mode timed out");
//Log.Warning("临时测试模式已超时,执行正常关闭流程 | Temporary test mode timed out, performing graceful shutdown");
// // 使用正常关闭流程,确保资源正确释放 | Use graceful shutdown to ensure proper resource release
// Application.Current.MainWindow?.Close();
});
}