mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
eb83545a26
commit
b52d7f60d9
@ -67,6 +67,8 @@ def _config():
|
|||||||
c.add_opt('default_send_to_device_action', default=None,
|
c.add_opt('default_send_to_device_action', default=None,
|
||||||
help=_('Default action to perform when send to device button is '
|
help=_('Default action to perform when send to device button is '
|
||||||
'clicked'))
|
'clicked'))
|
||||||
|
c.add_opt('show_donate_button', default=True,
|
||||||
|
help='Show donation button')
|
||||||
return ConfigProxy(c)
|
return ConfigProxy(c)
|
||||||
|
|
||||||
config = _config()
|
config = _config()
|
||||||
|
@ -107,6 +107,8 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
|
|||||||
self.donate_action = self.system_tray_menu.addAction(
|
self.donate_action = self.system_tray_menu.addAction(
|
||||||
QIcon(':/images/donate.svg'), _('&Donate to support calibre'))
|
QIcon(':/images/donate.svg'), _('&Donate to support calibre'))
|
||||||
self.donate_button.setDefaultAction(self.donate_action)
|
self.donate_button.setDefaultAction(self.donate_action)
|
||||||
|
if not config['show_donate_button']:
|
||||||
|
self.donate_button.setVisible(False)
|
||||||
self.addAction(self.quit_action)
|
self.addAction(self.quit_action)
|
||||||
self.action_restart = QAction(_('&Restart'), self)
|
self.action_restart = QAction(_('&Restart'), self)
|
||||||
self.addAction(self.action_restart)
|
self.addAction(self.action_restart)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user