MCPcopy Create free account
hub / github.com/GCWing/BitFun / remember_agent_companion_window_position

Function remember_agent_companion_window_position

src/apps/desktop/src/theme.rs:134–146  ·  view source on GitHub ↗
(position: tauri::LogicalPosition<f64>)

Source from the content-addressed store, hash-verified

132}
133
134fn remember_agent_companion_window_position(position: tauri::LogicalPosition<f64>) {
135 match agent_companion_window_last_position().write() {
136 Ok(mut last_position) => {
137 *last_position = Some(position);
138 }
139 Err(error) => {
140 warn!(
141 "Failed to remember Agent companion window position: {}",
142 error
143 );
144 }
145 }
146}
147
148fn remembered_agent_companion_window_position() -> Option<tauri::LogicalPosition<f64>> {
149 agent_companion_window_last_position()

Calls 2

writeMethod · 0.45

Tested by

no test coverage detected