adsfolio.gui.update_dialog

Show available releases, their changes, and the install path for this copy.

class adsfolio.gui.update_dialog.UpdateButton(parent=None)[source]

Bases: adsfolio.gui.icons.RoundIconButton

Round download button that draws a blue dot while an update is available.

Parameters:

parent (QWidget | None)

property dot_visible: bool[source]

Return whether the update dot is drawn.

paintEvent(event)[source]
Parameters:

event (PySide6.QtGui.QPaintEvent)

Return type:

None

set_dot_visible(visible)[source]

Show or hide the update dot.

Parameters:

visible (bool)

Return type:

None

staticMetaObject = PySide6.QtCore.QMetaObject("UpdateButton" inherits "RoundIconButton": )
class adsfolio.gui.update_dialog.UpdateDialog(checker, downloader, kind, parent=None, *, browser_command=None, download_directory=None)[source]

Bases: PySide6.QtWidgets.QDialog

Compare versions, show release notes, and install, skip, or cancel.

Parameters:
  • checker (UpdateChecker) – Shared release check.

  • downloader (UpdateDownloader) – Shared asset download.

  • kind (InstallationKind) – How this copy is installed. Only desktop downloads offer Install.

  • parent (QWidget, optional) – Parent window.

  • browser_command (str, optional) – Configured browser for release links.

  • download_directory (Path, optional) – Destination for verified downloads. Defaults to the user’s Downloads folder.

showEvent(event)[source]
Parameters:

event (PySide6.QtGui.QShowEvent)

Return type:

None

skip_requested
skipped_version: str | None
staticMetaObject = PySide6.QtCore.QMetaObject("UpdateDialog" inherits "QDialog": Methods:   #41 type=Signal, signature=skip_requested(QString), parameters=QString )
sync_state()[source]

Show the current check, release notes, and download state.

Return type:

None

adsfolio.gui.update_dialog.quiet_progress_bar(parent)[source]

Create a progress bar that stops drawing once hidden.

The native macOS style animates indeterminate bars with a shared AppKit indicator that keeps redrawing after the bar is hidden. Fusion animates only while the bar is visible.

Parameters:

parent (PySide6.QtWidgets.QWidget)

Return type:

PySide6.QtWidgets.QProgressBar