added global SnapVersion

snap8
Jens Mönig 2022-03-04 11:45:13 +01:00
rodzic 45c7f0ca2d
commit 3c27a151c6
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -7,6 +7,7 @@
* shift-click on STOP button to stop all scenes
* STOP "all scenes" dropdown option
* **Notable Changes:**
* show project name in browser tab, thanks, Peter!
* SciSnap2 extension update (FFT), thanks, Eckart!
* removed now redundant variadic reporters from the variadic reporters library
* **Notable Fixes:**
@ -21,6 +22,7 @@
* German translation update for "all scenes"
* animation library: fixed pen state for GLIDE, thanks, Brian!
* threads: addressed security issues in the JIT-compiler, thanks, xBZZZZ!
* gui: show project name in browser tab, thanks, Peter!
### 2022-03-03
* SciSnap2 extension update (FFT), thanks, Eckart!

Wyświetl plik

@ -90,6 +90,8 @@ modules.gui = '2022-March-04';
// Declarations
var SnapVersion = '7.3.0-dev';
var IDE_Morph;
var ProjectDialogMorph;
var LibraryImportDialogMorph;
@ -1258,9 +1260,8 @@ IDE_Morph.prototype.createControlBar = function () {
scene = myself.scenes.at(1) !== myself.scene ?
' (' + myself.scene.name + ')' : '';
name = (myself.getProjectName() || localize('untitled'));
if (name !== null && name !== 'untitled') {
document.title = "Snap! " + name;
}
document.title = "Snap! " +
(myself.getProjectName() ? name : SnapVersion);
txt = new StringMorph(
prefix + name + scene + suffix,
14,
@ -4777,7 +4778,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world();
aboutTxt = 'Snap! 7.3.0 - dev -\nBuild Your Own Blocks\n\n'
aboutTxt = 'Snap! ' + SnapVersion + '\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2008-2022 Jens M\u00F6nig and '
+ 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n'