Add quit command
This commit is contained in:
parent
ef9a5d569e
commit
7c866f5014
@ -11,6 +11,7 @@ def main():
|
|||||||
mw.status.cmd.returnPressed.connect(lambda: cp.parse(mw.status.cmd.text()))
|
mw.status.cmd.returnPressed.connect(lambda: cp.parse(mw.status.cmd.text()))
|
||||||
cmds.cmd_dict['openurl'].connect(mw.tabs.openurl)
|
cmds.cmd_dict['openurl'].connect(mw.tabs.openurl)
|
||||||
cmds.cmd_dict['tabopen'].connect(mw.tabs.tabopen)
|
cmds.cmd_dict['tabopen'].connect(mw.tabs.tabopen)
|
||||||
|
cmds.cmd_dict['quit'].connect(QApplication.closeAllWindows) # FIXME
|
||||||
mw.show()
|
mw.show()
|
||||||
|
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
|
@ -55,4 +55,9 @@ class TabOpenCmd(Command):
|
|||||||
name = 'tabopen'
|
name = 'tabopen'
|
||||||
signal = pyqtSignal(str)
|
signal = pyqtSignal(str)
|
||||||
|
|
||||||
|
class QuitCmd(Command):
|
||||||
|
nargs = 0
|
||||||
|
name = 'quit'
|
||||||
|
signal = pyqtSignal()
|
||||||
|
|
||||||
register_all()
|
register_all()
|
||||||
|
Loading…
Reference in New Issue
Block a user