Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
749a8566
Commit
749a8566
authored
Jan 25, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #472: update_gviz_params failed before GUI creation
parent
568aacd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
pronterface.py
printrun/pronterface.py
+4
-0
No files found.
printrun/pronterface.py
View file @
749a8566
...
...
@@ -189,6 +189,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
# FIXME: We need to initialize the main window after loading the
# configs to restore the size, but this might have some unforeseen
# consequences.
# -- Okai, it seems it breaks things like update_gviz_params ><
os
.
putenv
(
"UBUNTU_MENUPROXY"
,
"0"
)
size
=
(
self
.
settings
.
last_window_width
,
self
.
settings
.
last_window_height
)
MainWindow
.
__init__
(
self
,
None
,
title
=
_
(
"Pronterface"
),
size
=
size
)
...
...
@@ -853,6 +854,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
"preview_grid_step2"
:
"grid"
}
if
param
not
in
params_map
:
return
if
not
hasattr
(
self
,
"gviz"
):
# GUI hasn't been loaded yet, ignore this setting
return
trueparam
=
params_map
[
param
]
if
hasattr
(
self
.
gviz
,
trueparam
):
gviz
=
self
.
gviz
...
...
Write
Preview
Markdown
is supported
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