Repository: syncthing/syncthing
File: gui/default/syncthing/core/syncthingController.js (JavaScript)

Code before:
        $scope.progress = {};
        $scope.version = {};
        $scope.needed = {}
        $scope.neededFolder = '';
        $scope.failed = {};
        $scope.localChanged = {};
        $scope.scanProgress = {};
        $scope.themes = [];
        $scope.globalChangeEvents = {};
        $scope.metricRates = false;
        $scope.folderPathErrors = {};
        $scope.currentFolder = {};
        $scope.ignores = {
            text: '',
            error: null,
            disabled: false,
        };
        resetRemoteNeed();

        try {
            $scope.metricRates = (window.localStorage["metricRates"] == "true");
        } catch (exception) { }

        try {
            $scope.showRemoteGUI = (window.localStorage["showRemoteGUI"] == "true");
        } catch (exception) { }

        $scope.folderDefaults = {
            devices: [],
            type: "sendreceive",
            rescanIntervalS: 3600,
            fsWatcherDelayS: 10,
            fsWatcherEnabled: true,
            minDiskFree: { value: 1, unit: "%" },
            maxConflicts: 10,
            fsync: true,
            order: "random",
            fileVersioningSelector: "none",
            trashcanClean: 0,
            versioningCleanupIntervalS: 3600,
            simpleKeep: 5,
            staggeredMaxAge: 365,
            staggeredCleanInterval: 3600,
            staggeredVersionsPath: "",
            externalCommand: "",
            autoNormalize: true,
            path: "",
        };

        $scope.localStateTotal = {
            bytes: 0,

Review comment (suggestion):
This will reset `$scope.showRemoteGUI` to false if not present in local storage, overriding the previous default of `true`.

```suggestion
        if ("showRemoteGUI" in window.localStorage) {
            $scope.showRemoteGUI = (window.localStorage["showRemoteGUI"] == "true");
        }
```

Code after:
        $scope.progress = {};
        $scope.version = {};
        $scope.needed = {}
        $scope.neededFolder = '';
        $scope.failed = {};
        $scope.localChanged = {};
        $scope.scanProgress = {};
        $scope.themes = [];
        $scope.globalChangeEvents = {};
        $scope.metricRates = false;
        $scope.folderPathErrors = {};
        $scope.currentFolder = {};
        $scope.ignores = {
            text: '',
            error: null,
            disabled: false,
        };
        resetRemoteNeed();

        try {
            $scope.metricRates = (window.localStorage["metricRates"] == "true");
        } catch (exception) { }

        if ("showRemoteGUI" in window.localStorage) {
            $scope.showRemoteGUI = (window.localStorage["showRemoteGUI"] == "true");
        }

        $scope.folderDefaults = {
            devices: [],
            type: "sendreceive",
            rescanIntervalS: 3600,
            fsWatcherDelayS: 10,
            fsWatcherEnabled: true,
            minDiskFree: { value: 1, unit: "%" },
            maxConflicts: 10,
            fsync: true,
            order: "random",
            fileVersioningSelector: "none",
            trashcanClean: 0,
            versioningCleanupIntervalS: 3600,
            simpleKeep: 5,
            staggeredMaxAge: 365,
            staggeredCleanInterval: 3600,
            staggeredVersionsPath: "",
            externalCommand: "",
            autoNormalize: true,
            path: "",
        };

        $scope.localStateTotal = {
            bytes: 0,