v4.2.1
feat(ui): implement system restart with confirmation dialog and updated icon
- Integrated
ShowDarkConfirmDialoginto theID_BTN_RESTARTcommand block withinSidebar.cppto prevent accidental reboots. - Implemented Win32 token privilege escalation to acquire the
SE_SHUTDOWN_NAMEprivilege required for system-level actions. - Added native Win32
ExitWindowsExexecution with forced reboot flags upon user confirmation. - Fixed the restart button glyph in
DrawSidebarButton, replacing the incorrect cancel icon (\xE14C) with the standard power icon (\xE7E8). - Added the missing
ConfirmDialog.hinclude toSidebar.cpp.