feat: prepare Zhinian desktop client for pilot release
This commit is contained in:
@@ -57,7 +57,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
tray = new Tray(icon);
|
||||
|
||||
// Set tooltip
|
||||
tray.setToolTip('ClawX - AI Assistant');
|
||||
tray.setToolTip('智念助手 - B 端 AI Agent');
|
||||
|
||||
const showWindow = () => {
|
||||
if (mainWindow.isDestroyed()) return;
|
||||
@@ -68,7 +68,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
// Create context menu
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'Show ClawX',
|
||||
label: '显示智念助手',
|
||||
click: showWindow,
|
||||
},
|
||||
{
|
||||
@@ -91,7 +91,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
label: 'Quick Actions',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Open Chat',
|
||||
label: '打开对话',
|
||||
click: () => {
|
||||
if (mainWindow.isDestroyed()) return;
|
||||
mainWindow.show();
|
||||
@@ -99,7 +99,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Open Settings',
|
||||
label: '打开设置',
|
||||
click: () => {
|
||||
if (mainWindow.isDestroyed()) return;
|
||||
mainWindow.show();
|
||||
@@ -112,7 +112,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Check for Updates...',
|
||||
label: '检查更新...',
|
||||
click: () => {
|
||||
if (mainWindow.isDestroyed()) return;
|
||||
mainWindow.webContents.send('update:check');
|
||||
@@ -122,7 +122,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Quit ClawX',
|
||||
label: '退出智念助手',
|
||||
click: () => {
|
||||
app.quit();
|
||||
},
|
||||
@@ -157,7 +157,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
|
||||
*/
|
||||
export function updateTrayStatus(status: string): void {
|
||||
if (tray) {
|
||||
tray.setToolTip(`ClawX - ${status}`);
|
||||
tray.setToolTip(`智念助手 - ${status}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user