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
086620c6
Commit
086620c6
authored
Dec 04, 2011
by
Nathan Zadoks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SD Upload being enabled without a file being loaded.
parent
04b72b28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pronterface.py
pronterface.py
+4
-1
No files found.
pronterface.py
View file @
086620c6
...
...
@@ -72,6 +72,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
statuscheck
=
False
self
.
tempreport
=
""
self
.
monitor
=
0
self
.
f
=
None
self
.
skeinp
=
None
self
.
monitor_interval
=
3
self
.
paused
=
False
...
...
@@ -678,6 +679,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
obj
=
e
.
GetEventObject
()
popupmenu
=
wx
.
Menu
()
item
=
popupmenu
.
Append
(
-
1
,
_
(
"SD Upload"
))
if
not
self
.
f
or
not
len
(
self
.
f
):
item
.
Enable
(
False
)
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
upload
,
id
=
item
.
GetId
())
item
=
popupmenu
.
Append
(
-
1
,
_
(
"SD Print"
))
self
.
Bind
(
wx
.
EVT_MENU
,
self
.
sdprintfile
,
id
=
item
.
GetId
())
...
...
@@ -1407,7 +1410,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
recvlisteners
.
remove
(
self
.
uploadtrigger
)
def
upload
(
self
,
event
):
if
not
len
(
self
.
f
):
if
not
self
.
f
or
not
len
(
self
.
f
):
return
if
not
self
.
p
.
online
:
return
...
...
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