Merge branch 'maintenance' into devel

This commit is contained in:
GitHub Nightly Merge Action committed 2023-01-28 00:12:02 +00:00
commit eba158d53d
5 files changed
+25 -3

No files matched your search

@@ -1,6 +1,6 @@
<div id="classicwebcam_container">
<!-- Init style with display none to hide the content while we are binding -->
<div "id="webcam_video_container" tabindex="0" data-bind="visible: webcamWebRTCEnabled() || webcamHlsEnabled(), css: { webcam_rotated: settings.rotate90(), webcam_unrotated: !settings.rotate90() }" style="display: none;">
<div id="webcam_video_container" tabindex="0" data-bind="visible: webcamWebRTCEnabled() || webcamHlsEnabled(), css: { webcam_rotated: settings.rotate90(), webcam_unrotated: !settings.rotate90() }" style="display: none;">
<div class="video-controls btn-group action-buttons">
<div class="btn btn-mini" data-bind="click: function(data, event) { $root.launchWebcamFullscreen() }"><i class="fas fa-expand"></i></div>
<div class="btn btn-mini" data-bind="visible: document.pictureInPictureEnabled, click: function(data, event) { $root.launchWebcamPictureInPicture() }"><i class="fas fa-images"></i></div>
+6 -1
View File
@@ -1491,12 +1491,17 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
if self._comm is not None:
self._comm = None
with self._selectedFileMutex:
if self._selectedFile is not None:
eventManager().fire(Events.FILE_DESELECTED)
self._setJobData(None, None, None)
self._updateProgressData()
self._setCurrentZ(None)
self._setJobData(None, None, None)
self._setOffsets(None)
self._addTemperatureData()
self._printerProfileManager.deselect()
eventManager().fire(Events.DISCONNECTED)
self._setState(state, state_string=state_string, error_string=error_string)
+1
View File
@@ -1762,6 +1762,7 @@ def collect_core_assets(preferred_stylesheet="css"):
assets["js"] = [
"js/app/bindings/allowbindings.js",
"js/app/bindings/contextmenu.js",
"js/app/bindings/gettext.js",
"js/app/bindings/invisible.js",
"js/app/bindings/popover.js",
"js/app/bindings/qrcode.js",
@@ -0,0 +1,16 @@
ko.bindingHandlers.gettext = {
init: function () {
// Prevent binding on the dynamically-injected text node (as developers are unlikely to expect that, and it has security implications).
// It should also make things faster, as we no longer have to consider whether the text node might be bindable.
return {controlsDescendantBindings: true};
},
update: function (element, valueAccessor) {
var gt =
gettext ||
function (text) {
return text;
};
ko.utils.setTextContent(element, gt(valueAccessor()));
}
};
ko.virtualElements.allowedBindings["gettext"] = true;
@@ -6,7 +6,7 @@
<td class="settings_accesscontrol_permissions_list_checkbox"><input type="checkbox" data-bind="checkedValue: key, checked: $parents[1].editor.permissions, enable: $parents[1].editor.permissionSelectable($data)"></td>
<td class="settings_accesscontrol_permissions_list_name" style="cursor: pointer" data-bind="click: function() { if ($parents[1].editor.permissionSelectable($data)) { $parents[1].editor.togglePermission($data.key) } }, attr: {title: description}">
<span class="name" data-bind="text: name, style: { fontWeight: ($parents[1].editor.permissionSelected($data.key)) ? 'bold' : 'normal' }"></span> <span class="label label-info" data-bind="visible: typeof(plugin) !== 'undefined'">{{ _('Plugin') }}</span> <span class="label label-important" data-bind="visible: dangerous">{{ _('Dangerous') }}</span><br>
<small class="description muted" data-bind="text: description"></small>
<small class="description muted" data-bind="gettext: description"></small>
</td>
</tr>
</tbody>