mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-13 05:41:17 +00:00
Fix code defects
This commit is contained in:
parent
6fd522472c
commit
fa30b70453
@ -68,8 +68,10 @@
|
||||
}
|
||||
|
||||
// Register keyboard events to modal window
|
||||
// https://github.com/qbittorrent/qBittorrent/pull/18687#discussion_r1135045726
|
||||
var keyboard;
|
||||
if (!keyboard) {
|
||||
var keyboard = new Keyboard({
|
||||
keyboard = new Keyboard({
|
||||
defaultEventType: 'keydown',
|
||||
events: {
|
||||
'Escape': function(event) {
|
||||
|
@ -106,7 +106,6 @@ window.qBittorrent.PiecesBar = (() => {
|
||||
}
|
||||
|
||||
function refresh(force) {
|
||||
const start = Date.now();
|
||||
if (!this.parentNode)
|
||||
return;
|
||||
|
||||
|
@ -564,7 +564,7 @@ window.qBittorrent.PropFiles = (function() {
|
||||
};
|
||||
|
||||
const multiFileRename = function(hash) {
|
||||
const win = new MochaUI.Window({
|
||||
new MochaUI.Window({
|
||||
id: 'multiRenamePage',
|
||||
title: "QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView]",
|
||||
data: { hash: hash, selectedRows: torrentFilesTable.selectedRows },
|
||||
|
Loading…
x
Reference in New Issue
Block a user