diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs index 9e8e203b3..9e28a72bd 100644 --- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs +++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs @@ -594,20 +594,5 @@ namespace Flow.Launcher.Plugin /// The verb to use when starting the process, e.g. "runas" for elevated permissions. If not specified, no verb will be used. /// Whether process is started successfully public bool StartProcess(string filePath, string workingDirectory = "", string arguments = "", bool useShellExecute = true, string verb = ""); - - /// - /// Displays a User Account Control (UAC) dialog to request elevated permissions for the specified application. - /// - /// - /// If Flow is running under administrator mode, executing elevated actions will not trigger UAC dialog. - /// So this method is used to manually show the UAC dialog when needed. - /// - /// The name of the application requesting elevation. This will be displayed in the dialog. - /// The file path to the icon that will be displayed in the dialog. Must be a valid path to an image file. - /// The full file path of the executable requesting elevation. This is shown to the user for verification. - /// A indicating the user's response to the dialog. Possible values include - /// if the user grants permission, - /// or if the user denies permission. - public MessageBoxResult ShowUACDialog(string appName, string iconPath = "", string fullPath = ""); } } diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index aea9d4a60..97f294b14 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -379,11 +379,6 @@ Flow Launcher has been updated to {0} Click here to view the release notes - - User Account Control - Do you want to allow this app to make changes to your device? - Program location: {0} - Select File Manager Learn more diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs index 461f24aa7..877e3feef 100644 --- a/Flow.Launcher/PublicAPIInstance.cs +++ b/Flow.Launcher/PublicAPIInstance.cs @@ -617,9 +617,6 @@ namespace Flow.Launcher } } - public MessageBoxResult ShowUACDialog(string appName, string iconPath = "", string fullPath = "") => - UACDialog.Show(appName, iconPath, fullPath); - #endregion #region Private Methods diff --git a/Flow.Launcher/UACDialog.xaml b/Flow.Launcher/UACDialog.xaml deleted file mode 100644 index 9d13a2c7b..000000000 --- a/Flow.Launcher/UACDialog.xaml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -