Fix lint
This commit is contained in:
parent
dd9d6264c7
commit
1209724f83
@ -148,7 +148,7 @@
|
|||||||
|<<storage-offline-storage-database,offline-storage-database>>|Whether support for the HTML 5 offline storage feature is enabled.
|
|<<storage-offline-storage-database,offline-storage-database>>|Whether support for the HTML 5 offline storage feature is enabled.
|
||||||
|<<storage-offline-web-application-storage,offline-web-application-storage>>|Whether support for the HTML 5 web application cache feature is enabled.
|
|<<storage-offline-web-application-storage,offline-web-application-storage>>|Whether support for the HTML 5 web application cache feature is enabled.
|
||||||
|<<storage-local-storage,local-storage>>|Whether support for the HTML 5 local storage feature is enabled.
|
|<<storage-local-storage,local-storage>>|Whether support for the HTML 5 local storage feature is enabled.
|
||||||
|<<storage-cache-size,cache-size>>|Size of the HTTP network cache.
|
|<<storage-cache-size,cache-size>>|Size of the HTTP network cache. Empty to use the default value.
|
||||||
|==============
|
|==============
|
||||||
|
|
||||||
.Quick reference for section ``content''
|
.Quick reference for section ``content''
|
||||||
@ -1383,9 +1383,9 @@ Default: +pass:[true]+
|
|||||||
|
|
||||||
[[storage-cache-size]]
|
[[storage-cache-size]]
|
||||||
=== cache-size
|
=== cache-size
|
||||||
Size of the HTTP network cache.
|
Size of the HTTP network cache. Empty to use the default value.
|
||||||
|
|
||||||
Default: +pass:[52428800]+
|
Default: empty
|
||||||
|
|
||||||
== content
|
== content
|
||||||
Loaded plugins/scripts and allowed actions.
|
Loaded plugins/scripts and allowed actions.
|
||||||
|
@ -351,11 +351,11 @@ class CommandDispatcher:
|
|||||||
|
|
||||||
def _print_preview(self, tab):
|
def _print_preview(self, tab):
|
||||||
"""Show a print preview."""
|
"""Show a print preview."""
|
||||||
tab.printing.check_preview_support()
|
|
||||||
def print_callback(ok):
|
def print_callback(ok):
|
||||||
if not ok:
|
if not ok:
|
||||||
message.error("Printing failed!")
|
message.error("Printing failed!")
|
||||||
|
|
||||||
|
tab.printing.check_preview_support()
|
||||||
diag = QPrintPreviewDialog()
|
diag = QPrintPreviewDialog()
|
||||||
diag.setAttribute(Qt.WA_DeleteOnClose)
|
diag.setAttribute(Qt.WA_DeleteOnClose)
|
||||||
diag.setWindowFlags(diag.windowFlags() | Qt.WindowMaximizeButtonHint |
|
diag.setWindowFlags(diag.windowFlags() | Qt.WindowMaximizeButtonHint |
|
||||||
@ -365,8 +365,8 @@ class CommandDispatcher:
|
|||||||
diag.exec_()
|
diag.exec_()
|
||||||
|
|
||||||
def _print_pdf(self, tab, filename):
|
def _print_pdf(self, tab, filename):
|
||||||
tab.printing.check_pdf_support()
|
|
||||||
"""Print to the given PDF file."""
|
"""Print to the given PDF file."""
|
||||||
|
tab.printing.check_pdf_support()
|
||||||
filename = os.path.expanduser(filename)
|
filename = os.path.expanduser(filename)
|
||||||
directory = os.path.dirname(filename)
|
directory = os.path.dirname(filename)
|
||||||
if directory and not os.path.exists(directory):
|
if directory and not os.path.exists(directory):
|
||||||
|
@ -797,7 +797,8 @@ def data(readonly=False):
|
|||||||
('cache-size',
|
('cache-size',
|
||||||
SettingValue(typ.Int(none_ok=True, minval=0,
|
SettingValue(typ.Int(none_ok=True, minval=0,
|
||||||
maxval=MAXVALS['int64']), ''),
|
maxval=MAXVALS['int64']), ''),
|
||||||
"Size of the HTTP network cache. Empty to use the default value."),
|
"Size of the HTTP network cache. Empty to use the default "
|
||||||
|
"value."),
|
||||||
|
|
||||||
readonly=readonly
|
readonly=readonly
|
||||||
)),
|
)),
|
||||||
|
Loading…
Reference in New Issue
Block a user