From 9b008755f81cf3019c81af9f59d82b05ade0d9b5 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Sat, 7 Feb 2026 12:04:49 -0800 Subject: Refactor where architecture selection is performed for universal binaries Responsibility for selecting an architecture is moved out of `UniversalTransform` and into a new `ContainerOpenRequest` class. `UniversalTransform` still handles architecture selection in headless operation (for now). --- ui/containerbrowser.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/containerbrowser.h') diff --git a/ui/containerbrowser.h b/ui/containerbrowser.h index 363e5446..b9ba278f 100644 --- a/ui/containerbrowser.h +++ b/ui/containerbrowser.h @@ -15,6 +15,7 @@ #include +class ContainerOpenRequest; class ContainerTreeModel : public QAbstractItemModel { @@ -121,4 +122,8 @@ public: bool openWithOptionsRequested() const { return m_openWithOptionsRequested; } static std::vector openContainerFile(const QString& path, bool forceShowDialog = false, bool* outOpenWithOptions = nullptr); + + // Show the container browser dialog for the given open request. + // Returns the selected contexts, or empty if the user cancelled. + static std::vector showBrowser(ContainerOpenRequest& request, bool* outOpenWithOptions = nullptr); }; -- cgit v1.3.1