← Commit history

1.0.30: NATIVE (Rust) build. 1.0.30: kicad_taskbar_repair fixes the white taskbar icon on standalone KiCad editors by writing KiCad's own AUMID onto its standalone Start Menu shortcuts, once at every bridge start and on demand; no Adom identity; a stubborn button needs a logon or explorer restart.

John Lauer ·a0bc522e88 ·1mo ago ·parent d9b65ac
2 files changed +6
rust/crates/kicad-platform/Cargo.toml+3
@@ -28,6 +28,9 @@ windows = { version = "0.61", features = [     "Win32_UI_Shell",     "Win32_UI_HiDpi",     "Win32_System_Com",+    "Win32_System_Variant", # KiCad shortcut AUMID repair (win/shortcuts.rs)+    "Win32_System_Com_StructuredStorage", # KiCad shortcut AUMID repair (win/shortcuts.rs)+    "Win32_UI_Shell_PropertiesSystem", # KiCad shortcut AUMID repair (win/shortcuts.rs)     "Win32_Security",                 # SECURITY_ATTRIBUTES in the CreateProcessW signature (spawn_background)     "Win32_Storage_Xps",              # PrintWindow lives here in the windows crate (capture_window)     "Win32_System_SystemInformation", # GetTickCount (seconds_since_input)
rust/crates/kicad-platform/src/lib.rs+3
@@ -189,6 +189,9 @@ pub trait Platform: Sync + Send {     fn set_placement(&self, _hwnd: u64, _p: &Placement) -> Result<(), String> { nope("set_placement") }     /// Is any part of the rect on a monitor?     fn on_a_monitor(&self, _rect: (i32, i32, i32, i32)) -> Result<bool, String> { nope("on_a_monitor") }+    /// Write KiCad's own AUMID onto its standalone Start Menu shortcuts (the white taskbar+    /// icon); one row per shortcut with `written` / `already` / `missing` / `error`.+    fn repair_taskbar_shortcuts(&self, _version: &str) -> Result<Value, String> { nope("repair_taskbar_shortcuts") }     /// Capture a window's pixels for the canvas-painted probe (PrintWindow); no focus change.     fn capture_window(&self, _hwnd: u64) -> Result<Capture, String> { nope("capture_window") }     /// The GL canvas child rect (class wxGLCanvas) in window-client coordinates, if any.