1
0
Fork 0
forked from mia/0x0

ModUI: Handle opening filter panel with NULL user agent

This commit is contained in:
Mia Herkt 2023-03-29 07:49:56 +02:00
parent c189c47306
commit c2b5e95903
No known key found for this signature in database

2
mod.py
View file

@ -61,7 +61,7 @@ class NullptrMod(Screen):
case 2: finput.value = self.current_file.addr case 2: finput.value = self.current_file.addr
case 3: finput.value = self.current_file.mime case 3: finput.value = self.current_file.mime
case 4: finput.value = self.current_file.ext case 4: finput.value = self.current_file.ext
case 5: finput.value = self.current_file.ua case 5: finput.value = self.current_file.ua or ""
def on_input_submitted(self, message: Input.Submitted) -> None: def on_input_submitted(self, message: Input.Submitted) -> None:
self.query_one("#filter_container").display = False self.query_one("#filter_container").display = False