Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
72cb39c2
Commit
72cb39c2
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
FSLEyesFrame layout/restore logic was broken.
parent
601fc3a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/fsleyes/frame.py
+8
-9
8 additions, 9 deletions
fsl/fsleyes/frame.py
with
8 additions
and
9 deletions
fsl/fsleyes/frame.py
+
8
−
9
View file @
72cb39c2
...
@@ -474,10 +474,6 @@ class FSLEyesFrame(wx.Frame):
...
@@ -474,10 +474,6 @@ class FSLEyesFrame(wx.Frame):
position
=
self
.
__parseSavedPoint
(
fslsettings
.
read
(
'
frameposition
'
))
position
=
self
.
__parseSavedPoint
(
fslsettings
.
read
(
'
frameposition
'
))
layout
=
fslsettings
.
read
(
'
framelayout
'
)
layout
=
fslsettings
.
read
(
'
framelayout
'
)
# We can only restore a saved layout
# if there is a saved layout to restore
restore
=
restore
and
(
layout
is
not
None
)
if
(
size
is
not
None
)
and
(
position
is
not
None
):
if
(
size
is
not
None
)
and
(
position
is
not
None
):
# Turn the saved size/pos into
# Turn the saved size/pos into
...
@@ -557,11 +553,14 @@ class FSLEyesFrame(wx.Frame):
...
@@ -557,11 +553,14 @@ class FSLEyesFrame(wx.Frame):
self
.
Centre
()
self
.
Centre
()
if
restore
:
if
restore
:
perspectives
.
applyPerspective
(
if
layout
is
None
:
self
,
perspectives
.
loadPerspective
(
self
,
'
default
'
)
'
framelayout
'
,
else
:
layout
,
perspectives
.
applyPerspective
(
message
=
strings
.
messages
[
self
,
'
restoringLayout
'
],)
self
,
'
framelayout
'
,
layout
,
message
=
strings
.
messages
[
self
,
'
restoringLayout
'
])
def
__makeMenuBar
(
self
):
def
__makeMenuBar
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment