Fix code defects

This commit is contained in:
Chocobo1 2023-03-12 05:12:02 +08:00
parent 6fd522472c
commit fa30b70453
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 4 additions and 3 deletions

View file

@ -68,8 +68,10 @@
} }
// Register keyboard events to modal window // Register keyboard events to modal window
// https://github.com/qbittorrent/qBittorrent/pull/18687#discussion_r1135045726
var keyboard;
if (!keyboard) { if (!keyboard) {
var keyboard = new Keyboard({ keyboard = new Keyboard({
defaultEventType: 'keydown', defaultEventType: 'keydown',
events: { events: {
'Escape': function(event) { 'Escape': function(event) {

View file

@ -106,7 +106,6 @@ window.qBittorrent.PiecesBar = (() => {
} }
function refresh(force) { function refresh(force) {
const start = Date.now();
if (!this.parentNode) if (!this.parentNode)
return; return;

View file

@ -564,7 +564,7 @@ window.qBittorrent.PropFiles = (function() {
}; };
const multiFileRename = function(hash) { const multiFileRename = function(hash) {
const win = new MochaUI.Window({ new MochaUI.Window({
id: 'multiRenamePage', id: 'multiRenamePage',
title: "QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView]", title: "QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView]",
data: { hash: hash, selectedRows: torrentFilesTable.selectedRows }, data: { hash: hash, selectedRows: torrentFilesTable.selectedRows },