Skip to content

Commit

Permalink
Notifications now show the Small Text lost in version 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Jun 13, 2023
1 parent 2d2e748 commit 1fd6894
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions wingetui/genericCustomWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,11 @@ def show(self):
template = windows_toasts.toast_types.ToastText4()
else:
template = windows_toasts.toast_types.ToastText2()
template.SetFirstLine(self.title)
template.SetHeadline(self.title)
if self.description:
template.SetSecondLine(self.description)
template.SetFirstLine(self.description)
if self.smallText:
template.SetSecondLine(self.smallText)
#template.SetDuration(self.showTime)
for action in self.actionsReference.keys():
actionText = self.actionsReference[action]
Expand Down Expand Up @@ -1108,7 +1110,7 @@ def onAction(self, arguments: windows_toasts.ToastActivatedEventArgs = None, inp
self.signalCaller(self.onClickFun)
else:
self.onClickFun()

class DraggableWindow(QWidget):
pressed = False
oldPos = QPoint(0, 0)
Expand Down
2 changes: 1 addition & 1 deletion wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def finishLoadingIfNeeded(self) -> None:
t = ToastNotification(self, self.callInMain.emit)
if count > 1:
t.setTitle(_("Updates found!"))
t.setDescription(_("{0} packages are being updated").format(count))
t.setDescription(_("{0} packages are being updated").format(count)+":")
packageList = ""
for item in self.packageItems:
packageList += item.text(1)+", "
Expand Down

0 comments on commit 1fd6894

Please sign in to comment.