From a7611ff419a120ae3ea8db673e88bbd515043e61 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 12 Oct 2026 16:06:14 +0800 Subject: [PATCH] fix: fix macos-only ambiguous overload issue --- app/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index e965ffc..0bd91d8 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -78,7 +78,11 @@ int main(int argc, char *argv[]) // Handle dock icon clicks to show hidden window a.connect(&a, &QApplication::applicationStateChanged, [&w](Qt::ApplicationState state) { if (state == Qt::ApplicationActive && w.isHidden()) { - w.showFiles({}); + // YYC MARK: + // We can't use `{}` because there is an ambiguity between 2 overloads: + // `void showFiles(const QStringList& files);` and `void showFiles(const QList& urls);`. + QStringList emptyFileList; + w.showFiles(emptyFileList); w.galleryCurrent(false); w.showNormal(); w.raise();