removed old hidden "project urls" setting

snap7
jmoenig 2021-11-15 13:04:01 +01:00
rodzic 49c955ce84
commit 306ebb25a0
2 zmienionych plików z 3 dodań i 32 usunięć

Wyświetl plik

@ -36,7 +36,8 @@
* blocked xhr requests to from Snap! to s.b.e
* the "message" reporter and watcher in the control category has been deprecated and moved to dev mode for backwards compatibility
* removed old hidden "prefer smooth animations" setting (no longer used, old projects will continue to work just fine)
* removed old hidden "virtual keyboard" setting
* removed old hidden "virtual keyboard" setting (was no longer used for the last years)
* removed old hidden "project urls" setting
* **Notable Fixes:**
* made scrollbars in the wardrobe and jukebox more responsive
* fixed centering of menus, thanks, Brian Broll!
@ -64,6 +65,7 @@
* gui, objects, threads, store, translations: Removed old hidden "prefer smooth animations" setting
* gui: removed experimental hidden "add scenes" option from the settings menus
* gui, translations: removed old hidden "virtual keyboard" setting
* gui: removed old hidden "project urls" setting
### 2021-11-14
* locale: contextualize translations

Wyświetl plik

@ -232,7 +232,6 @@ IDE_Morph.prototype.init = function (isAutoFill) {
// restore saved user preferences
this.userLanguage = null; // user language preference for startup
this.projectsInURLs = false;
this.applySavedSettings();
// additional properties:
@ -2881,7 +2880,6 @@ IDE_Morph.prototype.applySavedSettings = function () {
language = this.getSetting('language'),
click = this.getSetting('click'),
longform = this.getSetting('longform'),
longurls = this.getSetting('longurls'),
plainprototype = this.getSetting('plainprototype'),
keyboard = this.getSetting('keyboard'),
tables = this.getSetting('tables'),
@ -2925,13 +2923,6 @@ IDE_Morph.prototype.applySavedSettings = function () {
InputSlotDialogMorph.prototype.isLaunchingExpanded = true;
}
// project data in URLs
if (longurls) {
this.projectsInURLs = true;
} else {
this.projectsInURLs = false;
}
// keyboard editing
if (keyboard === 'false') {
ScriptsMorph.prototype.enableKeyboard = false;
@ -4010,21 +4001,6 @@ IDE_Morph.prototype.settingsMenu = function () {
'check to enable auto-wrapping\ninside nested block stacks',
true
);
addPreference(
'Project URLs',
() => {
this.projectsInURLs = !this.projectsInURLs;
if (this.projectsInURLs) {
this.saveSetting('longurls', true);
} else {
this.removeSetting('longurls');
}
},
this.projectsInURLs,
'uncheck to disable\nproject data in URLs',
'check to enable\nproject data in URLs',
true
);
addPreference(
'Sprite Nesting',
() => SpriteMorph.prototype.enableNesting =
@ -5112,7 +5088,6 @@ IDE_Morph.prototype.exportProject = function (name) {
str = this.serializer.serialize(
new Project(this.scenes, this.scene)
);
this.setURL('#open:data:text/xml,' + encodeURIComponent(str));
this.saveXMLAs(str, name);
menu.destroy();
this.recordSavedChanges();
@ -5791,7 +5766,6 @@ IDE_Morph.prototype.openProjectName = function (name) {
this.setProjectName(name);
str = localStorage['-snap-project-' + name];
this.openProjectString(str);
this.setURL('#open:' + str);
}
};
@ -5852,11 +5826,6 @@ IDE_Morph.prototype.switchToScene = function (scene, refreshAlbum, msg) {
}
};
IDE_Morph.prototype.setURL = function (str) {
// Set the URL to a project's XML contents
location.hash = this.projectsInURLs ? str : '';
};
IDE_Morph.prototype.saveFileAs = function (
contents,
fileType,