2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: stop telemetry on db change

This commit is contained in:
18alantom 2022-03-15 17:27:37 +05:30
parent 20578d2ab5
commit 4aabd75def

View File

@ -47,6 +47,7 @@ import DatabaseSelector from './pages/DatabaseSelector';
import Desk from './pages/Desk';
import SetupWizard from './pages/SetupWizard/SetupWizard';
import './styles/index.css';
import telemetry from './telemetry/telemetry';
import { checkForUpdates, routeTo } from './utils';
export default {
@ -131,6 +132,7 @@ export default {
},
changeDbFile() {
config.set('lastSelectedFilePath', null);
telemetry.stop()
purgeCache(true);
this.activeScreen = 'DatabaseSelector';
},