mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
fix(shell): the starting window no longer says only a first start is slow
This commit is contained in:
1 parent
b326c1e0f5
commit
bbdd3d3961
3 files changed
+14
-2
No files matched your search
@@ -2,8 +2,8 @@
|
||||
const { BrowserWindow } = require("electron");
|
||||
|
||||
const TEXT = {
|
||||
en: ["Reasonix Studio is starting", "The first start after installing or rebooting can take a minute."],
|
||||
zh: ["Reasonix Studio 正在启动", "安装或重启电脑后的首次启动可能需要一分钟。"],
|
||||
en: ["Reasonix Studio is starting", "This may take a few seconds to a minute."],
|
||||
zh: ["Reasonix Studio 正在启动", "可能需要几秒到一分钟。"],
|
||||
};
|
||||
|
||||
function startingPage(locale) {
|
||||
|
||||
@@ -15,6 +15,7 @@ const { offerCleanup, ownBundle } = require("../src/legacy.js");
|
||||
const { stripPackageGrants, readReport, unpaintedWindowCause } = require("../src/packagegrants.js");
|
||||
const { groundFor, themeSourceFor, GROUND } = require("../src/ground.js");
|
||||
const { folderAnswer } = require("../src/folderpanel.js");
|
||||
const { startingPage } = require("../src/starting.js");
|
||||
const { pick, loadPrefs, savePrefs, registerPrefs } = require("../src/prefs.js");
|
||||
|
||||
const TOKEN = "a".repeat(64);
|
||||
@@ -2943,3 +2944,12 @@ test("only the app's own window is answered, and nothing is read from the asker"
|
||||
assert.deepEqual(processMemoryHandler(app, () => null)({}), []);
|
||||
assert.deepEqual(processMemoryHandler({ getAppMetrics: () => { throw new Error("x"); } }, () => true)({}), []);
|
||||
});
|
||||
|
||||
test("the starting window's note fits any slow launch, not only the first one after an install or reboot", () => {
|
||||
const zh = startingPage("zh-CN");
|
||||
const en = startingPage("en-US");
|
||||
assert.doesNotMatch(zh, /首次|第一次|安装|重启/);
|
||||
assert.doesNotMatch(en, /first|install|reboot|restart/i);
|
||||
assert.match(zh, /几秒/);
|
||||
assert.match(en, /few seconds/);
|
||||
});
|
||||
@@ -0,0 +1,2 @@
|
||||
- 修复:启动画面的提示不再写成“安装或重启电脑后的首次启动”,改为“可能需要几秒到一分钟”,慢启动时都一样。关联 #13352。
|
||||
- Fixed: the starting window no longer says only the first start after an install or reboot is slow; it now says startup may take a few seconds to a minute. Refs #13352.
|
||||
Reference in new issue
Block a user