mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add button to config dialog to open calibre config directory
This commit is contained in:
parent
ace64ded21
commit
92b61f28ee
@ -453,6 +453,12 @@ class ConfigDialog(QDialog, Ui_Dialog):
|
|||||||
self.delete_news.setEnabled)
|
self.delete_news.setEnabled)
|
||||||
self.setup_conversion_options()
|
self.setup_conversion_options()
|
||||||
self.opt_worker_limit.setValue(config['worker_limit'])
|
self.opt_worker_limit.setValue(config['worker_limit'])
|
||||||
|
self.connect(self.button_open_config_dir, SIGNAL('clicked()'),
|
||||||
|
self.open_config_dir)
|
||||||
|
|
||||||
|
def open_config_dir(self):
|
||||||
|
from calibre.utils.config import config_dir
|
||||||
|
QDesktopServices.openUrl(QUrl.fromLocalFile(config_dir))
|
||||||
|
|
||||||
def create_symlinks(self):
|
def create_symlinks(self):
|
||||||
from calibre.utils.osx_symlinks import create_symlinks
|
from calibre.utils.osx_symlinks import create_symlinks
|
||||||
|
@ -616,13 +616,20 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2">
|
<item row="3" column="0" colspan="2">
|
||||||
<widget class="QPushButton" name="button_osx_symlinks">
|
<widget class="QPushButton" name="button_osx_symlinks">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Install command line tools</string>
|
<string>&Install command line tools</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="0" colspan="2">
|
||||||
|
<widget class="QPushButton" name="button_open_config_dir">
|
||||||
|
<property name="text">
|
||||||
|
<string>Open calibre &configuration directory</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="page_4">
|
<widget class="QWidget" name="page_4">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user