Explorar el Código

mol-plugin: state saving tweak

David Sehnal hace 5 años
padre
commit
ad7b318da0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/mol-plugin-ui/state/snapshots.tsx

+ 2 - 0
src/mol-plugin-ui/state/snapshots.tsx

@@ -221,6 +221,8 @@ export class RemoteStateSnapshots extends PluginUIComponent<
 
     upload = async () => {
         this.setState({ isBusy: true });
+        this.plugin.config.set(PluginConfig.State.CurrentServer, this.state.params.options.serverUrl);
+
         if (this.plugin.state.snapshots.state.entries.size === 0) {
             await PluginCommands.State.Snapshots.Add.dispatch(this.plugin, {
                 name: this.state.params.name,