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>
|
<enum>Qt::TabFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Copy clipboard to Qubes clipboard</string>
|
<string>Copy to Qubes clipboard</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
|
@ -51,14 +51,13 @@ class LogDialog(Ui_LogDialog, QDialog):
|
|||||||
|
|
||||||
def __init_log_text__(self):
|
def __init_log_text__(self):
|
||||||
log = open(self.log_path)
|
log = open(self.log_path)
|
||||||
text = log.read()
|
self.displayed_text = log.read()
|
||||||
log.close()
|
log.close()
|
||||||
self.log_text.setText(text)
|
self.log_text.setText(self.displayed_text)
|
||||||
|
|
||||||
|
|
||||||
def copy_to_qubes_clipboard_triggered(self):
|
def copy_to_qubes_clipboard_triggered(self):
|
||||||
clipboard = self.app.clipboard().text()
|
copy_text_to_qubes_clipboard(self.displayed_text)
|
||||||
copy_text_to_qubes_clipboard(clipboard)
|
|
||||||
|
|
||||||
########################COPY TEXT TO QUBES CLIPBOARD
|
########################COPY TEXT TO QUBES CLIPBOARD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user