Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion desktop.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
<img src="icon/notepad.svg">
<p data-i18n="notepad.name">记事本</p>
</a>
<a oncontextmenu="return showcm(event, 'smlapp', ['copilot', 'AI Chat'])" onclick="openapp('copilot');hide_startmenu();">
<a oncontextmenu="return showcm(event, 'smlapp', ['copilot', 'AI Chat'])" onclick="shownotice('error_aichat')">
<img src="icon/copilot.svg">
<p>AI Chat</p>
</a>
Expand Down
7 changes: 7 additions & 0 deletions desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,13 @@ const nts = {
{ type: '', text: lang('取消','cancel'), js: 'closenotice();' }
]
},
'error_aichat': {
cnt: lang(`<p class="tit">AI Chat 无法使用</p>
<p>暂时无法使用此功能,请转用语音输入球</p>`),
btn: [
{ type: 'main', text: lang('确定', 'ok'), js: 'closenotice();' }
]
},
};
function shownotice(name) {
$('#notice>.cnt').html(nts[name].cnt);
Expand Down
5 changes: 3 additions & 2 deletions module/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,9 @@ let apps = {
taskkill: (name) => {
if (name == 'System') {
window.location = 'bluescreen.html';
}
else {
}else if(name == 'Windows Logon Process'){
window.location.reload();
}else {
apps.taskmgr.tasks.splice(apps.taskmgr.tasks.findIndex(elt => elt.name == name), 1);
if (taskmgrTasks.find(elt => elt.name == name).link != null) {
hidewin(taskmgrTasks.find(elt => elt.name == name).link);
Expand Down