mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-25 04:26:28 +00:00
(DomainTransition|InfoFlow)AnalysisTab: add busy indicator when GUI could be unresponsive
Bring in line with other tabs.
This commit is contained in:
parent
56b436fde6
commit
c697009f24
setoolsgui/apol
@ -229,8 +229,10 @@ class DomainTransitionAnalysisTab(SEToolsWidget, QScrollArea):
|
||||
self.thread.start()
|
||||
|
||||
def update_complete(self):
|
||||
# update location of result display
|
||||
self.raw_results.moveCursor(QTextCursor.Start)
|
||||
if not self.busy.wasCanceled():
|
||||
self.busy.setLabelText("Moving the raw result to top; GUI may be unresponsive")
|
||||
self.busy.repaint()
|
||||
self.raw_results.moveCursor(QTextCursor.Start)
|
||||
|
||||
self.busy.reset()
|
||||
|
||||
|
@ -215,8 +215,10 @@ class InfoFlowAnalysisTab(SEToolsWidget, QScrollArea):
|
||||
self.thread.start()
|
||||
|
||||
def update_complete(self):
|
||||
# update location of result display
|
||||
self.raw_results.moveCursor(QTextCursor.Start)
|
||||
if not self.busy.wasCanceled():
|
||||
self.busy.setLabelText("Moving the raw result to top; GUI may be unresponsive")
|
||||
self.busy.repaint()
|
||||
self.raw_results.moveCursor(QTextCursor.Start)
|
||||
|
||||
self.busy.reset()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user