Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes
Commits
ca4eb9bf
Commit
ca4eb9bf
authored
Sep 03, 2021
by
Paul McCarthy
🚵
Browse files
RF: Avoid loading images specified on cli twice on big sur
parent
abf10fd4
Changes
1
Show whitespace changes
Inline
Side-by-side
fsleyes/main.py
View file @
ca4eb9bf
...
...
@@ -189,6 +189,14 @@ class FSLeyesApp(wx.App):
# queue the files to open them later
# in SetOverlayListAndDisplayContext
if
self
.
__overlayList
is
None
:
# On certain systems (observed on Big Sur), when
# files are passed as command-line arguments, they
# are passed to MacOpenFiles. We don't want that,
# because cli arguments are parsed separately. So
# we remove dupes here.
filenames
=
[
f
for
f
in
filenames
if
f
not
in
sys
.
argv
]
self
.
__filesToOpen
.
extend
(
filenames
)
return
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment