Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlatwe committed Oct 2, 2018
1 parent 00835cc commit 786ca30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion pyblish_qml/qml/Footer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ View {
// 0 = Default; 1 = Publishing; 2 = Finished
property int mode: 0
property bool paused: false
property bool startup: true

signal publish
signal validate
Expand Down
11 changes: 1 addition & 10 deletions pyblish_qml/qml/Overview.qml
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,7 @@ Item {

visible: overview.state != "initialising"

mode: {
if (startup === true) {
// Ensure collecting process is stoppable on first run
setMessage("Collecting..")
return 1
}

return overview.state == "publishing" ? 1 : overview.state == "finished" ? 2 : 0
}
mode: overview.state == "publishing" ? 1 : overview.state == "finished" ? 2 : 0

width: parent.width
anchors.bottom: parent.bottom
Expand All @@ -238,7 +230,6 @@ Item {
onFirstRun: {
app.commentEnabled ? commentBox.up() : null
commentBox.text = app.comment()
footer.startup = false
}

onStateChanged: {
Expand Down

0 comments on commit 786ca30

Please sign in to comment.