mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: add the logic to prompt user to update network plugins
Change-Id: I73cce20e58783a365ad2665c8e095dcf2e9c02ea
This commit is contained in:
parent
8b5a49f378
commit
697d945ca1
7 changed files with 289 additions and 18 deletions
|
@ -135,6 +135,7 @@ enum class NotificationType
|
|||
BBLSeqPrintInfo,
|
||||
//BBL: plugin install hint
|
||||
BBLPluginInstallHint,
|
||||
BBLPluginUpdateAvailable,
|
||||
BBLPreviewOnlyMode,
|
||||
};
|
||||
|
||||
|
@ -873,6 +874,17 @@ private:
|
|||
_u8L("Integration failed.") },
|
||||
NotificationData{NotificationType::UndoDesktopIntegrationSuccess, NotificationLevel::RegularNotificationLevel, 10,
|
||||
_u8L("Undo integration was successful.") },
|
||||
|
||||
NotificationData{NotificationType::BBLPluginUpdateAvailable, NotificationLevel::ImportantNotificationLevel, BBL_NOTICE_MAX_INTERVAL,
|
||||
_L("New network plug-in available.").ToStdString(),
|
||||
_L("Details").ToStdString(),
|
||||
[](wxEvtHandler* evnthndlr) {
|
||||
//BBS set feishu release page by default
|
||||
wxCommandEvent* evt = new wxCommandEvent(EVT_UPDATE_PLUGINS_WHEN_LAUNCH);
|
||||
wxQueueEvent(wxGetApp().plater(), evt);
|
||||
return true;
|
||||
}},
|
||||
|
||||
NotificationData{NotificationType::UndoDesktopIntegrationFail, NotificationLevel::WarningNotificationLevel, 10,
|
||||
_u8L("Undo integration failed.") },
|
||||
NotificationData{NotificationType::ExportOngoing, NotificationLevel::RegularNotificationLevel, 0, _u8L("Exporting.")},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue