Skip to content

Commit

Permalink
Show if demodulation is in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Jan 23, 2020
1 parent d48487e commit 5460cf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/urh/controller/MainController.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,12 @@ def add_signal(self, signal, group_id=0, index=-1):

self.signal_protocol_dict[sig_frame] = pa

sig_frame.refresh(draw_full_signal=True) # protocol is derived here
sig_frame.refresh_signal(draw_full_signal=True)
sig_frame.refresh_signal_information(block=True)

qApp.processEvents()
sig_frame.show_protocol(refresh=True)

if self.project_manager.read_participants_for_signal(signal, pa.messages):
sig_frame.ui.gvSignal.redraw_view()

Expand Down
3 changes: 3 additions & 0 deletions src/urh/controller/widgets/SignalFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,9 @@ def restore_protocol_selection(self, sel_start, sel_end, start_message, end_mess

def update_protocol(self):
self.ui.txtEdProto.setEnabled(False)
self.ui.txtEdProto.setText("Demodulating...")
qApp.processEvents()

self.proto_analyzer.get_protocol_from_signal()

def show_protocol(self, old_view=-1, refresh=False):
Expand Down

0 comments on commit 5460cf5

Please sign in to comment.