private boolean shouldTrackSelection(boolean isAdjusting, int firstIndex) {
		if (restoringSelection) {
			return false;
		}

		if (!ignoreSelectionChange) {
			return true;
		}

		// The assumption here is that we were ignoring changes while the model was in the
		// adjusting state.  When the state is turned off, then we want to stop ignoring
		// changes
		if (!isAdjusting) {
			ignoreSelectionChange = false;
			if (table.getSelectedRow() != -1) {
				return true; // the adjustments are done and there is a valid selection
			}
		}
		return false;
	}
checks to see if we are ignoring selection changes AND will reset the ignore state
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/RowObjectSelectionManager.java