Replace direct indexing (self.projects[self.selected_index - 1]) with .get() to prevent panic if selected_index is somehow out of bounds. Falls back to "All Projects" scope when the index is invalid instead of panicking.
Replace direct indexing (self.projects[self.selected_index - 1]) with .get() to prevent panic if selected_index is somehow out of bounds. Falls back to "All Projects" scope when the index is invalid instead of panicking.