mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
Chore: Disable crash detection in dev mode
This commit is contained in:
parent
86179bd74c
commit
22c83214be
@ -9,7 +9,7 @@ import shim from '@joplin/lib/shim';
|
|||||||
import AlarmService from '@joplin/lib/services/AlarmService';
|
import AlarmService from '@joplin/lib/services/AlarmService';
|
||||||
import AlarmServiceDriverNode from '@joplin/lib/services/AlarmServiceDriverNode';
|
import AlarmServiceDriverNode from '@joplin/lib/services/AlarmServiceDriverNode';
|
||||||
import Logger, { TargetType } from '@joplin/lib/Logger';
|
import Logger, { TargetType } from '@joplin/lib/Logger';
|
||||||
import Setting from '@joplin/lib/models/Setting';
|
import Setting, { Env } from '@joplin/lib/models/Setting';
|
||||||
import actionApi from '@joplin/lib/services/rest/actionApi.desktop';
|
import actionApi from '@joplin/lib/services/rest/actionApi.desktop';
|
||||||
import BaseApplication from '@joplin/lib/BaseApplication';
|
import BaseApplication from '@joplin/lib/BaseApplication';
|
||||||
import DebugService from '@joplin/lib/debug/DebugService';
|
import DebugService from '@joplin/lib/debug/DebugService';
|
||||||
@ -325,6 +325,8 @@ class Application extends BaseApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private crashDetectionHandler() {
|
private crashDetectionHandler() {
|
||||||
|
if (Setting.value('env') === Env.Dev) return;
|
||||||
|
|
||||||
if (!Setting.value('wasClosedSuccessfully')) {
|
if (!Setting.value('wasClosedSuccessfully')) {
|
||||||
const answer = confirm(_('The application did not close properly. Would you like to start in safe mode?'));
|
const answer = confirm(_('The application did not close properly. Would you like to start in safe mode?'));
|
||||||
Setting.setValue('isSafeMode', !!answer);
|
Setting.setValue('isSafeMode', !!answer);
|
||||||
|
Loading…
Reference in New Issue
Block a user