Remove references to old GPU preview feature.
This commit is contained in:
parent
3f54084d14
commit
652a50a5a6
4 changed files with 1 additions and 18 deletions
|
|
@ -239,9 +239,7 @@ export default {
|
||||||
this.$store.commit("changeWaiting", false);
|
this.$store.commit("changeWaiting", false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExit: function () {
|
handleExit: function () {},
|
||||||
eventBus.emit("globalTogglePreview", false);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle global mouse wheel events to be associated with navigation
|
* Handle global mouse wheel events to be associated with navigation
|
||||||
|
|
|
||||||
|
|
@ -98,8 +98,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeUnmount: function () {
|
beforeUnmount: function () {
|
||||||
// Remove global signal listener to change the GPU preview state
|
|
||||||
eventBus.off("globalTogglePreview", true);
|
|
||||||
// Disconnect the size observer
|
// Disconnect the size observer
|
||||||
this.sizeObserver.disconnect();
|
this.sizeObserver.disconnect();
|
||||||
// Remove from the array of active streams
|
// Remove from the array of active streams
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,6 @@ import { eventBus } from "@/eventBus";
|
||||||
export default {
|
export default {
|
||||||
methods: {
|
methods: {
|
||||||
modalConfirm: function (modalText) {
|
modalConfirm: function (modalText) {
|
||||||
var context = this;
|
|
||||||
|
|
||||||
// Stop GPU preview to show modal
|
|
||||||
eventBus.emit("globalTogglePreview", false);
|
|
||||||
|
|
||||||
// force OK to be capitalised
|
// force OK to be capitalised
|
||||||
UIkit.modal.i18n = { ok: "OK", cancel: "Cancel" };
|
UIkit.modal.i18n = { ok: "OK", cancel: "Cancel" };
|
||||||
|
|
||||||
|
|
@ -32,10 +27,6 @@ export default {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.finally(function () {
|
.finally(function () {
|
||||||
// Re-enable the GPU preview, if it was active before the modal
|
|
||||||
if (context.$store.state.autoGpuPreview) {
|
|
||||||
eventBus.emit("globalTogglePreview", true);
|
|
||||||
}
|
|
||||||
eventBus.emit("modalClosed");
|
eventBus.emit("modalClosed");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ export default createStore({
|
||||||
available: false,
|
available: false,
|
||||||
waiting: false,
|
waiting: false,
|
||||||
error: "",
|
error: "",
|
||||||
autoGpuPreview: false,
|
|
||||||
trackWindow: true,
|
trackWindow: true,
|
||||||
activeStreams: {},
|
activeStreams: {},
|
||||||
microscopeHostname: "",
|
microscopeHostname: "",
|
||||||
|
|
@ -95,9 +94,6 @@ export default createStore({
|
||||||
changeDisableStream(state, disabled) {
|
changeDisableStream(state, disabled) {
|
||||||
state.disableStream = disabled;
|
state.disableStream = disabled;
|
||||||
},
|
},
|
||||||
changeAutoGpuPreview(state, enabled) {
|
|
||||||
state.autoGpuPreview = enabled;
|
|
||||||
},
|
|
||||||
changeTrackWindow(state, enabled) {
|
changeTrackWindow(state, enabled) {
|
||||||
state.trackWindow = enabled;
|
state.trackWindow = enabled;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue