diff --git a/src/calibre/gui2/dialogs/choose_library.py b/src/calibre/gui2/dialogs/choose_library.py index 5771e41704..f03e1836c3 100644 --- a/src/calibre/gui2/dialogs/choose_library.py +++ b/src/calibre/gui2/dialogs/choose_library.py @@ -5,17 +5,17 @@ __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal ' __docformat__ = 'restructuredtext en' -import os, errno -from threading import Thread, Event - -from qt.core import QDialog, QTimer, Qt, pyqtSignal +import errno +import os +from qt.core import QDialog, Qt, QTimer, pyqtSignal +from threading import Event, Thread +from calibre import force_unicode, isbytestring, patheq +from calibre.constants import filesystem_encoding, get_portable_base, iswindows +from calibre.gui2 import choose_dir, error_dialog from calibre.gui2.dialogs.choose_library_ui import Ui_Dialog from calibre.gui2.dialogs.progress import ProgressDialog as PD -from calibre.gui2 import error_dialog, choose_dir -from calibre.constants import (filesystem_encoding, iswindows, - get_portable_base) -from calibre import isbytestring, patheq, force_unicode +from calibre.utils.localization import localize_user_manual_link class ProgressDialog(PD): @@ -43,8 +43,11 @@ class ProgressDialog(PD): class ChooseLibrary(QDialog, Ui_Dialog): def __init__(self, db, callback, parent): - QDialog.__init__(self, parent) + super().__init__(parent) self.setupUi(self) + self.nas_warning.setText(self.nas_warning.text().format(localize_user_manual_link( + 'https://manual.calibre-ebook.com/faq.html#i-am-getting-errors-with-my-calibre-library-on-a-networked-drive-nas'))) + self.nas_warning.setOpenExternalLinks(True) self.db = db self.new_db = None self.callback = callback diff --git a/src/calibre/gui2/dialogs/choose_library.ui b/src/calibre/gui2/dialogs/choose_library.ui index b2e2f47ad5..7cef13cd49 100644 --- a/src/calibre/gui2/dialogs/choose_library.ui +++ b/src/calibre/gui2/dialogs/choose_library.ui @@ -28,66 +28,7 @@ - - - - New &location: - - - location - - - - - - - Use the previously &existing library at the new location - - - true - - - - - - - - - &Create an empty library at the new location - - - - - - - Copy the custom columns, saved searches, column widths, plugboards, -user categories, and other information from the old to the new library - - - &Copy structure from the current library - - - - - - - - - &Move the current library to new location - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - Qt::Vertical @@ -100,19 +41,6 @@ user categories, and other information from the old to the new library - - - - Qt::Vertical - - - - 20 - 40 - - - - @@ -137,6 +65,55 @@ user categories, and other information from the old to the new library + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + Use the previously &existing library at the new location + + + true + + + + + + + + + &Create an empty library at the new location + + + + + + + Copy the custom columns, saved searches, column widths, plugboards, +user categories, and other information from the old to the new library + + + &Copy structure from the current library + + + + + + + + + &Move the current library to new location + + + @@ -147,6 +124,36 @@ user categories, and other information from the old to the new library + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + New &location: + + + location + + + + + + + Note that putting the calibre library on a Networked drive <a href="{}">is not safe</a>. + + +