From 6740ab95fd8f8352eb62c3f17f0b8ca7a482d0cd Mon Sep 17 00:00:00 2001 From: ksqsf Date: Fri, 14 Jun 2024 11:32:41 +0200 Subject: [PATCH] fix Quick Phrase editor button in Advanced --- src/config/optionviews.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config/optionviews.swift b/src/config/optionviews.swift index 6d4af30..46e7f43 100644 --- a/src/config/optionviews.swift +++ b/src/config/optionviews.swift @@ -168,7 +168,12 @@ struct ExternalOptionView: OptionView { case "QuickPhrase": showQuickPhrase = true default: - viewModel.showConfig(model.external) + switch model.external { + case "fcitx://config/addon/quickphrase/editor": + showQuickPhrase = true + default: + viewModel.showConfig(model.external) + } } } .sheet(isPresented: $showCustomPhrase) {