clear status bar when removing selection
This commit is contained in:
@@ -454,10 +454,13 @@ class InnerBigText(QWidget):
|
|||||||
self.highlight_selected_text.set_query("")
|
self.highlight_selected_text.set_query("")
|
||||||
|
|
||||||
def _update_status_bar(self, start_byte: int, end_byte: int):
|
def _update_status_bar(self, start_byte: int, end_byte: int):
|
||||||
bytes_human_readable = humanbytes(end_byte - start_byte)
|
if end_byte - start_byte > 0:
|
||||||
PluginRegistry.execute("update_status_bar",
|
bytes_human_readable = humanbytes(end_byte - start_byte)
|
||||||
_("selected {0} - {1:,.0f}:{2:,.0f}").format(bytes_human_readable, start_byte,
|
PluginRegistry.execute("update_status_bar",
|
||||||
end_byte - 1))
|
_("selected {0} - {1:,.0f}:{2:,.0f}").format(bytes_human_readable, start_byte,
|
||||||
|
end_byte - 1))
|
||||||
|
else:
|
||||||
|
PluginRegistry.execute("update_status_bar", _(""))
|
||||||
|
|
||||||
def _file_changed(self):
|
def _file_changed(self):
|
||||||
if self._follow_tail:
|
if self._follow_tail:
|
||||||
|
|||||||
Reference in New Issue
Block a user