One click copy logs to Qubes clipboard (#543)
This commit is contained in:
parent
7890aac8e8
commit
c78d382f26
@ -48,7 +48,7 @@
|
||||
<enum>Qt::TabFocus</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy clipboard to Qubes clipboard</string>
|
||||
<string>Copy to Qubes clipboard</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
|
@ -51,14 +51,13 @@ class LogDialog(Ui_LogDialog, QDialog):
|
||||
|
||||
def __init_log_text__(self):
|
||||
log = open(self.log_path)
|
||||
text = log.read()
|
||||
self.displayed_text = log.read()
|
||||
log.close()
|
||||
self.log_text.setText(text)
|
||||
self.log_text.setText(self.displayed_text)
|
||||
|
||||
|
||||
def copy_to_qubes_clipboard_triggered(self):
|
||||
clipboard = self.app.clipboard().text()
|
||||
copy_text_to_qubes_clipboard(clipboard)
|
||||
copy_text_to_qubes_clipboard(self.displayed_text)
|
||||
|
||||
########################COPY TEXT TO QUBES CLIPBOARD
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user