@@ -950,7 +950,12 @@ def open_winget_manager(e):
950950 content = ft .Column ([
951951 ft .Text ("Quickly generate a local manifest structure based on analysis results." ),
952952 ft .Text (f"Target: { info .manufacturer } .{ info .product_name } " , size = 12 , italic = True ),
953- ], height = 80 , tight = True ),
953+ ft .Container (height = 5 ),
954+ ft .Row ([
955+ ft .Icon (ft .Icons .WARNING_AMBER , color = "ORANGE" , size = 16 ),
956+ ft .Text ("Note: Manifests use a placeholder SHA256. Manual update required before submission." , size = 11 , color = "ORANGE" , italic = True )
957+ ], vertical_alignment = ft .CrossAxisAlignment .CENTER )
958+ ], height = 110 , tight = True ),
954959 actions = [
955960 ft .TextButton ("Cancel" , on_click = lambda _ : setattr (dlg , "open" , False ) or self .app_page .update ()),
956961 ft .TextButton ("Open Manager" , on_click = open_winget_manager ),
@@ -1026,17 +1031,8 @@ def _bg():
10261031
10271032 # Show success dialog
10281033 def open_folder (e ):
1029- import os
1030- import sys
1031- import subprocess
1032-
10331034 try :
1034- if sys .platform == "win32" :
1035- self ._open_path (str (source ))
1036- elif sys .platform == "darwin" :
1037- subprocess .call (["open" , str (source )])
1038- else :
1039- subprocess .call (["xdg-open" , str (source )])
1035+ self ._open_path (str (source ))
10401036 except Exception as ex :
10411037 self ._show_snack (f"Failed to open folder: { ex } " , "RED" )
10421038
0 commit comments