Merge pull request #1829 from zed-industries/add-release-channel-information-to-telemetry-events

Add release channel information to telemetry events
This commit is contained in:
Joseph T. Lyons
2022-10-31 16:42:28 -04:00
committed by GitHub
7 changed files with 42 additions and 15 deletions
@@ -29,11 +29,7 @@ impl View for UpdateNotification {
let theme = cx.global::<Settings>().theme.clone();
let theme = &theme.update_notification;
let app_name = match *cx.global::<ReleaseChannel>() {
ReleaseChannel::Dev => "Zed Dev",
ReleaseChannel::Preview => "Zed Preview",
ReleaseChannel::Stable => "Zed",
};
let app_name = cx.global::<ReleaseChannel>().name();
MouseEventHandler::<ViewReleaseNotes>::new(0, cx, |state, cx| {
Flex::column()