Skip to content

Commit

Permalink
GH-696 Avoid error when disabling recent files option
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Aug 10, 2024
1 parent 81f9d9d commit 986b9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/editor_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void OrchestratorEditorPanel::_update_recent_history()
_recent_history->add_item("Clear Recent Files");

if (_recent_files.is_empty())
_recent_history->set_item_disabled(_recent_history->get_item_count(), true);
_recent_history->set_item_disabled(_recent_history->get_item_count() - 1, true);
}

void OrchestratorEditorPanel::_save_recent_history()
Expand Down

0 comments on commit 986b9c7

Please sign in to comment.