Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
adam2392 committed Jul 25, 2022
1 parent 9405cd9 commit ffc3be2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mne_icalabel/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def label_ica_components(inst, ica: ICA, show: bool = True, block: bool = False)

from ._label_components import ICAComponentLabeler

app = QApplication([])
# get application
app = QApplication.instance()

This comment has been minimized.

Copy link
@larsoner

larsoner Jul 25, 2022

Member
if app is None:
app = QApplication(["ICA Component Annotator"])
gui = ICAComponentLabeler(inst=inst, ica=ica, show=show)
if block:
_qt_app_exec(app)
Expand Down

0 comments on commit ffc3be2

Please sign in to comment.