mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-17 06:09:28 +00:00
Remove check for updates on startup setting
This commit is contained in:
@@ -260,18 +260,6 @@ export class SettingsComponent extends React.Component<
|
|||||||
'Verify code after upload'
|
'Verify code after upload'
|
||||||
)}
|
)}
|
||||||
</label>
|
</label>
|
||||||
<label className="flex-line">
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
checked={this.state.checkForUpdates}
|
|
||||||
onChange={this.checkForUpdatesDidChange}
|
|
||||||
disabled={true}
|
|
||||||
/>
|
|
||||||
{nls.localize(
|
|
||||||
'arduino/preferences/checkForUpdates',
|
|
||||||
'Check for updates on startup'
|
|
||||||
)}
|
|
||||||
</label>
|
|
||||||
<label className="flex-line">
|
<label className="flex-line">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@@ -536,12 +524,6 @@ export class SettingsComponent extends React.Component<
|
|||||||
this.setState({ verifyAfterUpload: event.target.checked });
|
this.setState({ verifyAfterUpload: event.target.checked });
|
||||||
};
|
};
|
||||||
|
|
||||||
protected checkForUpdatesDidChange = (
|
|
||||||
event: React.ChangeEvent<HTMLInputElement>
|
|
||||||
) => {
|
|
||||||
this.setState({ checkForUpdates: event.target.checked });
|
|
||||||
};
|
|
||||||
|
|
||||||
protected sketchbookShowAllFilesDidChange = (
|
protected sketchbookShowAllFilesDidChange = (
|
||||||
event: React.ChangeEvent<HTMLInputElement>
|
event: React.ChangeEvent<HTMLInputElement>
|
||||||
) => {
|
) => {
|
||||||
|
|||||||
@@ -24,13 +24,11 @@ const AUTO_SAVE_SETTING = `${EDITOR_SETTING}.autoSave`;
|
|||||||
const QUICK_SUGGESTIONS_SETTING = `${EDITOR_SETTING}.quickSuggestions`;
|
const QUICK_SUGGESTIONS_SETTING = `${EDITOR_SETTING}.quickSuggestions`;
|
||||||
const ARDUINO_SETTING = 'arduino';
|
const ARDUINO_SETTING = 'arduino';
|
||||||
const WINDOW_SETTING = `${ARDUINO_SETTING}.window`;
|
const WINDOW_SETTING = `${ARDUINO_SETTING}.window`;
|
||||||
// const IDE_SETTING = `${ARDUINO_SETTING}.ide`;
|
|
||||||
const COMPILE_SETTING = `${ARDUINO_SETTING}.compile`;
|
const COMPILE_SETTING = `${ARDUINO_SETTING}.compile`;
|
||||||
const UPLOAD_SETTING = `${ARDUINO_SETTING}.upload`;
|
const UPLOAD_SETTING = `${ARDUINO_SETTING}.upload`;
|
||||||
const SKETCHBOOK_SETTING = `${ARDUINO_SETTING}.sketchbook`;
|
const SKETCHBOOK_SETTING = `${ARDUINO_SETTING}.sketchbook`;
|
||||||
const AUTO_SCALE_SETTING = `${WINDOW_SETTING}.autoScale`;
|
const AUTO_SCALE_SETTING = `${WINDOW_SETTING}.autoScale`;
|
||||||
const ZOOM_LEVEL_SETTING = `${WINDOW_SETTING}.zoomLevel`;
|
const ZOOM_LEVEL_SETTING = `${WINDOW_SETTING}.zoomLevel`;
|
||||||
// const AUTO_UPDATE_SETTING = `${IDE_SETTING}.autoUpdate`;
|
|
||||||
const COMPILE_VERBOSE_SETTING = `${COMPILE_SETTING}.verbose`;
|
const COMPILE_VERBOSE_SETTING = `${COMPILE_SETTING}.verbose`;
|
||||||
const COMPILE_WARNINGS_SETTING = `${COMPILE_SETTING}.warnings`;
|
const COMPILE_WARNINGS_SETTING = `${COMPILE_SETTING}.warnings`;
|
||||||
const UPLOAD_VERBOSE_SETTING = `${UPLOAD_SETTING}.verbose`;
|
const UPLOAD_VERBOSE_SETTING = `${UPLOAD_SETTING}.verbose`;
|
||||||
@@ -48,7 +46,6 @@ export interface Settings extends Index {
|
|||||||
|
|
||||||
autoScaleInterface: boolean; // `arduino.window.autoScale`
|
autoScaleInterface: boolean; // `arduino.window.autoScale`
|
||||||
interfaceScale: number; // `arduino.window.zoomLevel` https://github.com/eclipse-theia/theia/issues/8751
|
interfaceScale: number; // `arduino.window.zoomLevel` https://github.com/eclipse-theia/theia/issues/8751
|
||||||
checkForUpdates?: boolean; // `arduino.ide.autoUpdate`
|
|
||||||
verboseOnCompile: boolean; // `arduino.compile.verbose`
|
verboseOnCompile: boolean; // `arduino.compile.verbose`
|
||||||
compilerWarnings: CompilerWarnings; // `arduino.compile.warnings`
|
compilerWarnings: CompilerWarnings; // `arduino.compile.warnings`
|
||||||
verboseOnUpload: boolean; // `arduino.upload.verbose`
|
verboseOnUpload: boolean; // `arduino.upload.verbose`
|
||||||
@@ -93,7 +90,6 @@ export class SettingsService {
|
|||||||
|
|
||||||
@postConstruct()
|
@postConstruct()
|
||||||
protected async init(): Promise<void> {
|
protected async init(): Promise<void> {
|
||||||
await this.appStateService.reachedState('ready'); // Hack for https://github.com/eclipse-theia/theia/issues/8993
|
|
||||||
const settings = await this.loadSettings();
|
const settings = await this.loadSettings();
|
||||||
this._settings = deepClone(settings);
|
this._settings = deepClone(settings);
|
||||||
this.ready.resolve();
|
this.ready.resolve();
|
||||||
@@ -110,7 +106,6 @@ export class SettingsService {
|
|||||||
quickSuggestions,
|
quickSuggestions,
|
||||||
autoScaleInterface,
|
autoScaleInterface,
|
||||||
interfaceScale,
|
interfaceScale,
|
||||||
// checkForUpdates,
|
|
||||||
verboseOnCompile,
|
verboseOnCompile,
|
||||||
compilerWarnings,
|
compilerWarnings,
|
||||||
verboseOnUpload,
|
verboseOnUpload,
|
||||||
@@ -135,7 +130,6 @@ export class SettingsService {
|
|||||||
}),
|
}),
|
||||||
this.preferenceService.get<boolean>(AUTO_SCALE_SETTING, true),
|
this.preferenceService.get<boolean>(AUTO_SCALE_SETTING, true),
|
||||||
this.preferenceService.get<number>(ZOOM_LEVEL_SETTING, 0),
|
this.preferenceService.get<number>(ZOOM_LEVEL_SETTING, 0),
|
||||||
// this.preferenceService.get<string>(AUTO_UPDATE_SETTING, true),
|
|
||||||
this.preferenceService.get<boolean>(COMPILE_VERBOSE_SETTING, true),
|
this.preferenceService.get<boolean>(COMPILE_VERBOSE_SETTING, true),
|
||||||
this.preferenceService.get<any>(COMPILE_WARNINGS_SETTING, 'None'),
|
this.preferenceService.get<any>(COMPILE_WARNINGS_SETTING, 'None'),
|
||||||
this.preferenceService.get<boolean>(UPLOAD_VERBOSE_SETTING, true),
|
this.preferenceService.get<boolean>(UPLOAD_VERBOSE_SETTING, true),
|
||||||
@@ -154,7 +148,6 @@ export class SettingsService {
|
|||||||
quickSuggestions,
|
quickSuggestions,
|
||||||
autoScaleInterface,
|
autoScaleInterface,
|
||||||
interfaceScale,
|
interfaceScale,
|
||||||
// checkForUpdates,
|
|
||||||
verboseOnCompile,
|
verboseOnCompile,
|
||||||
compilerWarnings,
|
compilerWarnings,
|
||||||
verboseOnUpload,
|
verboseOnUpload,
|
||||||
@@ -234,7 +227,6 @@ export class SettingsService {
|
|||||||
quickSuggestions,
|
quickSuggestions,
|
||||||
autoScaleInterface,
|
autoScaleInterface,
|
||||||
interfaceScale,
|
interfaceScale,
|
||||||
// checkForUpdates,
|
|
||||||
verboseOnCompile,
|
verboseOnCompile,
|
||||||
compilerWarnings,
|
compilerWarnings,
|
||||||
verboseOnUpload,
|
verboseOnUpload,
|
||||||
@@ -284,7 +276,6 @@ export class SettingsService {
|
|||||||
interfaceScale,
|
interfaceScale,
|
||||||
PreferenceScope.User
|
PreferenceScope.User
|
||||||
),
|
),
|
||||||
// this.preferenceService.set(AUTO_UPDATE_SETTING, checkForUpdates, PreferenceScope.User),
|
|
||||||
this.preferenceService.set(
|
this.preferenceService.set(
|
||||||
COMPILE_VERBOSE_SETTING,
|
COMPILE_VERBOSE_SETTING,
|
||||||
verboseOnCompile,
|
verboseOnCompile,
|
||||||
|
|||||||
Reference in New Issue
Block a user