Skip to content

armgit / WacOS

Public Imported from GitHub
0

A new style desktop shell for Windows 11: menu bar, Dock, Finder, Spotlight, Control Center and Liquid Glass, in native C++.

Rust

Settings > General: Restart WacOS button

Eternity0706284a5ac5d53aa7
diff --git a/src/ajustes/paginas.cpp b/src/ajustes/paginas.cpp
index 4ccf942..61420a9 100644
--- a/src/ajustes/paginas.cpp
+++ b/src/ajustes/paginas.cpp
@@ -579,6 +579,14 @@ Page Geral() {
SetSetting(L"finder_padrao", on ? L"1" : L"0");
RunHidden(L"\"" + BinDir() + L"\\WacOSFinder.exe\" --quieto --padrao " + (on ? L"on" : L"off"));
}, L"Downloads do navegador, \"Mostrar na pasta\" e o Win+E também"),
+ // reinicia só o Shell (barra, Dock, mesa, vidro): o mesmo do "ShellReiniciar" que a atualização usa
+ Button(L"Reiniciar o WacOS", L"Reiniciar", [] {
+ static UINT msg = RegisterWindowMessageW(L"ShellReiniciar");
+ HWND sh = FindWindowExW(HWND_MESSAGE, nullptr, L"ShellMensagens", nullptr);
+ if (!sh) sh = FindWindowW(L"ShellMensagens", nullptr);
+ if (sh) PostMessageW(sh, msg, 0, 0);
+ else ShellExecuteW(nullptr, L"open", (BinDir() + L"\\WacOSShell.exe").c_str(), nullptr, nullptr, SW_SHOWNORMAL); // o Shell não está rodando: abre
+ }, L"Fecha e abre de novo a barra de menus, o Dock, a mesa e o vidro, sem sair do Windows. Os seus apps continuam abertos."),
Button(L"Parar de usar o WacOS", L"Desligar…", [] { TurnShellOff(); },
L"Fecha o Shell e devolve a barra de tarefas e o Explorador do Windows") }, L"WacOS"));
return p;
diff --git a/src/comum/idioma_en.inc b/src/comum/idioma_en.inc
index 3cde4c3..4e48a23 100644
--- a/src/comum/idioma_en.inc
+++ b/src/comum/idioma_en.inc
@@ -415,6 +415,8 @@
{ L"O fundo aparece nítido e dobra nas bordas, como no Tahoe. Gravações de outros programas não mostram o Dock e os painéis; desligue para gravar a tela.", L"The background shows through sharp and bends at the edges, like in Tahoe. Recordings from other programs don’t show the Dock and panels; turn this off to record the screen." },
{ L"Refração nas bordas", L"Edge refraction" },
{ L"Reiniciar o Liquid Glass", L"Restart Liquid Glass" },
+{ L"Reiniciar o WacOS", L"Restart WacOS" },
+{ L"Fecha e abre de novo a barra de menus, o Dock, a mesa e o vidro, sem sair do Windows. Os seus apps continuam abertos.", L"Closes and reopens the menu bar, Dock, desktop and glass without signing out of Windows. Your apps stay open." },
{ L"Atualizações Disponíveis", L"Updates Available" },
{ L"está pronto para instalar", L"is ready to install" },
{ L" mudança", L" change" },