opt: optimize icon

This commit is contained in:
Kingtous
2023-02-07 20:38:27 +08:00
parent 404915c975
commit 344d927ff8
5 changed files with 95 additions and 42 deletions

View File

@@ -358,14 +358,16 @@ class _DesktopHomePageState extends State<DesktopHomePage>
return buildInstallCard("", "install_daemon_tip", "Install", () async {
bind.mainIsInstalledDaemon(prompt: true);
});
} else if ((await osxCanRecordAudio() !=
PermissionAuthorizeType.authorized)) {
return buildInstallCard("Permissions", "config_microphone", "Configure",
() async {
osxRequestAudio();
watchIsCanRecordAudio = true;
});
}
//// Disable microphone configuration for macOS. We will request the permission when needed.
// else if ((await osxCanRecordAudio() !=
// PermissionAuthorizeType.authorized)) {
// return buildInstallCard("Permissions", "config_microphone", "Configure",
// () async {
// osxRequestAudio();
// watchIsCanRecordAudio = true;
// });
// }
} else if (Platform.isLinux) {
if (bind.mainCurrentIsWayland()) {
return buildInstallCard(