we compiled

This commit is contained in:
filipriec
2025-03-31 22:08:39 +02:00
parent bee95c3755
commit 8e0fae26ee
4 changed files with 272 additions and 197 deletions

View File

@@ -67,4 +67,21 @@ impl CanvasState for AuthState {
fn fields(&self) -> Vec<&str> {
vec!["Username/Email", "Password"]
}
// --- Implement the setter methods ---
fn set_current_field(&mut self, index: usize) {
// AuthState only has 2 fields (0 and 1)
if index < 2 {
self.current_field = index;
}
}
fn set_current_cursor_pos(&mut self, pos: usize) {
// Optional: Add validation based on current input length if needed
self.current_cursor_pos = pos;
}
fn set_has_unsaved_changes(&mut self, _changed: bool) {
// Auth form doesn't track unsaved changes, so do nothing
}
}