Continues to push notification when export gcode

This commit is contained in:
QIDI TECH
2023-08-21 09:36:40 +08:00
parent 1dad523325
commit 74e485d913
3 changed files with 18 additions and 31 deletions

View File

@@ -148,8 +148,6 @@ public:
WarningNotificationLevel,
// Error, no fade-out. Top most position.
ErrorNotificationLevel,
// test
ExportingNotificationLevel,
};
NotificationManager(wxEvtHandler* evt_handler);
@@ -322,7 +320,8 @@ private:
ClosePending, // Requesting Render
Finished, // Requesting Render
Hovered, // Followed by Shown
Paused
Paused,
Exporting
};
PopNotification(const NotificationData &n, NotificationIDProvider &id_provider, wxEvtHandler* evt_handler);
@@ -383,7 +382,6 @@ private:
virtual bool push_background_color();
// used this function instead of reading directly m_data.duration. Some notifications might need to return changing value.
virtual int get_duration() { return m_data.duration; }
virtual NotificationLevel get_duration_level() { return m_data.level; }
const NotificationData m_data;
// For reusing ImGUI windows.
@@ -866,7 +864,6 @@ private:
case NotificationLevel::RegularNotificationLevel: return 10;
case NotificationLevel::PrintInfoNotificationLevel: return 10;
case NotificationLevel::HintNotificationLevel: return 300;
case NotificationLevel::ExportingNotificationLevel: return 1;
default: return 10;
}
}