Skip to content

Commit 22806cd

Browse files
committed
Add [*] placeholder to window titles.
1 parent 89d3cc9 commit 22806cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Orange/widgets/widget.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ def __new__(cls, *args, captionTitle=None, **kwargs):
203203
self.widget_id = OWWidget.widget_id
204204

205205
captionTitle = self.name if captionTitle is None else captionTitle
206+
if "[*]" not in captionTitle:
207+
captionTitle += "[*]"
206208

207209
# must be set without invoking setCaption
208210
self.captionTitle = captionTitle
@@ -825,6 +827,8 @@ def wheelEvent(self, event):
825827

826828
def setCaption(self, caption):
827829
# save caption title in case progressbar will change it
830+
if "[*]" not in caption:
831+
caption += "[*]"
828832
self.captionTitle = str(caption)
829833
self.setWindowTitle(caption)
830834

0 commit comments

Comments
 (0)