fixing this

This commit is contained in:
filipriec
2025-04-14 13:23:09 +02:00
parent 71dabc1e37
commit adcd3b37fa
10 changed files with 21 additions and 19 deletions

View File

@@ -77,7 +77,7 @@ pub fn render_login(
// Login Button
let login_button_index = 0;
let login_active = if app_state.ui.focus_outside_canvas {
app_state.general.selected_item == login_button_index
app_state.focused_button_index== login_button_index
} else {
false
};
@@ -104,7 +104,7 @@ pub fn render_login(
// Return Button
let return_button_index = 1; // Assuming Return is the second general element
let return_active = if app_state.ui.focus_outside_canvas {
app_state.general.selected_item == return_button_index
app_state.focused_button_index== return_button_index
} else {
false // Not active if focus is in canvas or other modes
};