mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-08 11:21:04 -08:00
feat(config): make desktop notification duration configurable
This commit is contained in:
@@ -301,7 +301,8 @@ class DownloadService:
|
||||
message=message,
|
||||
app_name="FastAnime",
|
||||
app_icon=app_icon,
|
||||
timeout=20,
|
||||
timeout=self.app_config.general.desktop_notification_duration
|
||||
* 60,
|
||||
)
|
||||
except:
|
||||
pass
|
||||
@@ -322,7 +323,7 @@ class DownloadService:
|
||||
message=message,
|
||||
app_name="FastAnime",
|
||||
app_icon=app_icon,
|
||||
timeout=20,
|
||||
timeout=self.app_config.general.desktop_notification_duration * 60,
|
||||
)
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -101,7 +101,7 @@ class NotificationService:
|
||||
message=message,
|
||||
app_name="FastAnime",
|
||||
app_icon=app_icon, # plyer supports file paths or URLs depending on platform
|
||||
timeout=20,
|
||||
timeout=self.app_config.general.desktop_notification_duration * 60,
|
||||
)
|
||||
logger.info(f"Displayed notification: {message}")
|
||||
self._mark_seen(
|
||||
|
||||
Reference in New Issue
Block a user