Skip to content

Commit

Permalink
Fix do not open SR at first
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Feb 24, 2025
1 parent 65b7954 commit d9af4c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public void openViewerPlugin(
boolean selectPatient = !isPatientOpen;
if (!isPatientOpen && canAddNewPatient()) {
SeriesViewerFactory plugin = GuiUtils.getUICore().getViewerFactory(dicomSeries.getMimeType());
if (plugin != null && !(plugin instanceof MimeSystemAppFactory)) {
if (plugin != null
&& !("SRFactory".equals(plugin.getClass().getSimpleName()))
&& !(plugin instanceof MimeSystemAppFactory)) {
addPatient(patient);
selectPatient = false;
ViewerPluginBuilder.openSequenceInPlugin(plugin, dicomSeries, dicomModel, true, true);
Expand Down

0 comments on commit d9af4c1

Please sign in to comment.