Fix Unicode
This commit is contained in:
@@ -567,7 +567,7 @@ class AllowlistSelectionWidget(Static):
|
|||||||
|
|
||||||
# Success notification
|
# Success notification
|
||||||
self.app.notify(
|
self.app.notify(
|
||||||
f"â
Successfully added {len(self.hashes_to_add)} hashes to '{allowlist_name}'",
|
f"✅ Successfully added {len(self.hashes_to_add)} hashes to '{allowlist_name}'",
|
||||||
title="Success",
|
title="Success",
|
||||||
severity="information",
|
severity="information",
|
||||||
timeout=5,
|
timeout=5,
|
||||||
@@ -575,7 +575,7 @@ class AllowlistSelectionWidget(Static):
|
|||||||
|
|
||||||
# Update preview to show success
|
# Update preview to show success
|
||||||
self.preview_area.text = (
|
self.preview_area.text = (
|
||||||
f"## â
SUCCESS\n\n"
|
f"## ✅ SUCCESS\n\n"
|
||||||
f"Added **{len(self.hashes_to_add)} hashes** to allowlist:\n"
|
f"Added **{len(self.hashes_to_add)} hashes** to allowlist:\n"
|
||||||
f"**{allowlist_name}** (ID: {app_id})\n\n"
|
f"**{allowlist_name}** (ID: {app_id})\n\n"
|
||||||
f"### Operation Details:\n"
|
f"### Operation Details:\n"
|
||||||
@@ -586,16 +586,13 @@ class AllowlistSelectionWidget(Static):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Change button to "Done"
|
# Change button to "Done"
|
||||||
self.add_btn.label = "✅ Done - Close"
|
self.add_btn.label = "✅ Done"
|
||||||
self.add_btn.disabled = False
|
self.add_btn.disabled = True
|
||||||
|
|
||||||
# When clicked again, close the screen
|
|
||||||
self.add_btn_success = True
|
|
||||||
|
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.exception(f"Failed to add hashes to allowlist: {exc}")
|
logger.exception(f"Failed to add hashes to allowlist: {exc}")
|
||||||
self.app.notify(
|
self.app.notify(
|
||||||
f"âÂÅ Failed to add hashes: {str(exc)}",
|
f"❌ Failed to add hashes: {str(exc)}",
|
||||||
title="Error",
|
title="Error",
|
||||||
severity="error",
|
severity="error",
|
||||||
timeout=10,
|
timeout=10,
|
||||||
@@ -603,7 +600,7 @@ class AllowlistSelectionWidget(Static):
|
|||||||
|
|
||||||
# Re-enable button
|
# Re-enable button
|
||||||
self.add_btn.disabled = False
|
self.add_btn.disabled = False
|
||||||
self.add_btn.label = "â Retry Add to Allowlist"
|
self.add_btn.label = "⟳ Retry Add to Allowlist"
|
||||||
|
|
||||||
|
|
||||||
class AllowlistSelectionScreen(Screen):
|
class AllowlistSelectionScreen(Screen):
|
||||||
|
|||||||
Reference in New Issue
Block a user