1
0
Prechádzať zdrojové kódy

Fixed issue with protocols in the Browser

Nicolas Petton 12 rokov pred
rodič
commit
754d8d685f
3 zmenil súbory, kde vykonal 662 pridanie a 711 odobranie
  1. 328 355
      js/IDE.deploy.js
  2. 328 355
      js/IDE.js
  3. 6 1
      st/IDE.st

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 328 - 355
js/IDE.deploy.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 328 - 355
js/IDE.js


+ 6 - 1
st/IDE.st

@@ -1174,6 +1174,8 @@ updateProtocolsList
 !
 
 updateSourceAndButtons
+	| currentProtocol |
+
 	self disableSaveButton.
 	classButtons contents: [:html |
 		html button
@@ -1206,9 +1208,12 @@ updateSourceAndButtons
 				html option
 					class: 'important';
 					with: 'New...'.
+                currentProtocol := selectedProtocol.
+                (currentProtocol isNil and: [ selectedMethod notNil ])
+                	ifTrue: [ currentProtocol := selectedMethod category].
 				self protocols do: [:each |
 					option := html option with: each.
-					selectedProtocol = each ifTrue: [ option at: 'selected' put: 'selected' ] ]].
+					currentProtocol = each ifTrue: [ option at: 'selected' put: 'selected' ] ]].
 		selectedMethod isNil ifFalse: [
 			referencesSelect := html select.
                         referencesSelect

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov