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:
parent
20578d2ab5
commit
4aabd75def
@ -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';
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user