Skip to content

Commit 8c4a94f

Browse files
committed
Change Success messange and remove timeout
Now the message after a successful execution never goes away and the user has to dismiss it (hopefully after reading it). closes #32
1 parent 55eda2a commit 8c4a94f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

clusterpy_lightdialog.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def finishRun(self, success, outputmsg):
145145
self.okbutton.setEnabled(True)
146146
if success:
147147
self.addToCanvas()
148-
self.showMessage("Clusterpy", "Success. File:" + outputmsg,
149-
duration=10 )
148+
output_msg = "Success. New column added to attribute table. " + outputmsg
149+
self.showMessage("Clusterpy", output_msg, duration=0 )
150150
else:
151151
self.showMessage("Clusterpy Error",
152152
outputmsg,
@@ -162,4 +162,3 @@ def showMessage(self, msgtype, msgtext, level=QgsMessageBar.INFO,
162162
duration=30):
163163
messagebar = self.iface.messageBar()
164164
messagebar.pushMessage(msgtype, msgtext, level=level, duration=duration)
165-

0 commit comments

Comments
 (0)