More notifications and move start code to another file
This commit is contained in:
1 parent
e1bfd9494d
commit
5a926b1419
17 files changed
+240
-198
No files matched your search
@@ -132,6 +132,18 @@ impl NotificationManager {
|
||||
NotificationData::ImportError => {
|
||||
text!("Ошибка при импорте данных из Anki")
|
||||
}
|
||||
NotificationData::IncorrectAnkiFile => {
|
||||
text!("Неподдерживаемый формат файла .apkg")
|
||||
}
|
||||
NotificationData::OpenFileError => {
|
||||
text!("Ошибка открытия файла пакета")
|
||||
}
|
||||
NotificationData::VoiceVoxUnavailable => {
|
||||
text!("Не получается подключиться к VoiceVox")
|
||||
}
|
||||
NotificationData::PermissionDenied => {
|
||||
text!("У приложение недостаточно прав")
|
||||
}
|
||||
}
|
||||
.into()
|
||||
}
|
||||
@@ -146,6 +158,10 @@ pub enum NotificationRequest {
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum NotificationData {
|
||||
PermissionDenied,
|
||||
DataLoaded,
|
||||
ImportError,
|
||||
IncorrectAnkiFile,
|
||||
OpenFileError,
|
||||
VoiceVoxUnavailable
|
||||
}
|
||||
Reference in new issue
Block a user