Move telemetry settings check into telemetry module
This commit is contained in:
parent
c76fcb3ca5
commit
2972ee8ced
7 changed files with 41 additions and 77 deletions
|
@ -15,7 +15,7 @@ use anyhow::{anyhow, Context as _, Result};
|
|||
use call::ActiveCall;
|
||||
use client::{
|
||||
proto::{self, PeerId},
|
||||
Client, Status, TelemetrySettings, TypedEnvelope, UserStore,
|
||||
Client, Status, TypedEnvelope, UserStore,
|
||||
};
|
||||
use collections::{hash_map, HashMap, HashSet};
|
||||
use dock::{Dock, DockPosition, Panel, PanelButtons, PanelHandle};
|
||||
|
@ -1250,10 +1250,9 @@ impl Workspace {
|
|||
}
|
||||
|
||||
pub fn open(&mut self, _: &Open, cx: &mut ViewContext<Self>) {
|
||||
let telemetry_settings = TelemetrySettings::get_global(cx).clone();
|
||||
self.client()
|
||||
.telemetry()
|
||||
.report_app_event(telemetry_settings, "open project", false);
|
||||
.report_app_event("open project", false, cx);
|
||||
let paths = cx.prompt_for_paths(PathPromptOptions {
|
||||
files: true,
|
||||
directories: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue