Skip to content
Snippets Groups Projects
Commit fb70851b authored by Kien Le's avatar Kien Le
Browse files

Disable read options checkbox when needed

parent 5b5c576f
No related branches found
No related tags found
1 merge request!191Read log files generated by users
......@@ -296,6 +296,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
self.set_open_files_list_texts()
# self.search_button.setEnabled(not is_from_data_card_checked)
self.log_checkbox.setEnabled(not is_from_data_card_checked)
self.search_line_edit.setEnabled(not is_from_data_card_checked)
# QLineEdit does not change its color when it is disabled unless
# there is text inside, so we have to do it manually.
......@@ -316,6 +317,7 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
self.open_files_list.clear()
self.set_open_files_list_texts()
self.from_data_card_check_box.setEnabled(not is_checked)
self.search_line_edit.setEnabled(not is_checked)
# QLineEdit does not change its color when it is disabled unless
# there is text inside, so we have to do it manually.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment