+
    Ki  c                   s\    ^ RI H t ^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t
  ! R R]4      tR# )	i    )gettext)Gtk)get_custom_cache_pathsave_custom_cache_path)ModalDialog)FileChooserEntryc                   sB   a a ] tR t^
t oRV 3R lltR tR tRtVtV ;t	# )CacheConfigurationDialogc                s  < \         SV `  \        R 4      V\        P                  P
                  ^
R7       RV n        V P                  R^4       \        4       ;'       g    RV n	        V P                  4       P                  V P                  4       4       V P                  \        P                  \        P                  P                   4       V P#                  \        P$                  \        P                  P&                  4       V P)                  4        V P+                  4       pV\        P                  P&                  8X  d   \-        V P                  4       V P/                  4        R# )zDownload cache configuration)parentZflagsZborder_widthNi  Z )Zsuper__init___r   ZDialogFlagsZMODALtimer_idset_size_requestr   
cache_pathZget_content_areaZaddget_cache_configZ
add_buttonZSTOCK_CANCELZResponseTypeZCANCELZadd_default_buttonZSTOCK_OKZOKZshow_allZrunr   Zdestroy)selfr   Zresult	__class__s   && =/usr/lib/python3.14/site-packages/lutris/gui/dialogs/cache.pyr   Z!CacheConfigurationDialog.__init__   s    9:6QTQ`Q`QfQfuwxc3'/177R##D$9$9$;<((#*:*:*A*ABc.>.>.A.ABS%%((("4??3    c                st   \         P                  ! 4       p\         P                  ! ^^^R7      p\         P                  ! \	        R4      4      pVP                  VRR^ 4       \        \	        R4      \         P                  P                  RV P                  RR7      pVP                  RV P                  4       VP                  VRR^ 4       VP                  VRR^4       \         P                  ! RR7      pVP                  R	R4       VP                  \	        R
4      4       VP                  VRR^4       V# )z.Return the widgets for the cache configuration)ZspacingZmargin_rightZmargin_leftz
Cache pathFz!Set the folder for the cache pathT)ZtitleZactionZwarn_if_non_writable_parentZtextZactivates_defaultZchanged)Zvisiblei  zIf provided, this location will be used by installers to cache downloaded files locally for future re-use. 
If left empty, the installer files are discarded after the install completion.i)r   ZVBoxZBoxZLabelr	   Z
pack_startr   ZFileChooserActionZSELECT_FOLDERr   Zconnect_on_cache_path_setr   Z
set_markup)r   Z	prefs_boxZboxZlabelZpath_chooserZcache_help_labels   &     r   r   Z)CacheConfigurationDialog.get_cache_config   s   HHJ	ggbrrB		!L/*ueUA.'78((66(,"
 	Y(?(?@|T43S%299T2))#r2##N	
 	-ueQ?r   c                s0    VP                  4       V n        R # N)Zget_textr   )r   Zentrys   &&r   r   Z+CacheConfigurationDialog._on_cache_path_set<   s    ..*r   )r   r
   r   )
Z__name__Z
__module__Z__qualname__Z__firstlineno__r   r   r   Z__static_attributes__Z__classdictcell__Z__classcell__)r   Z__classdict__s   @@r   r   r   
   s     &<+ +r   r   N)r    r	   Zgi.repositoryr   Zlutris.cacher   r   Zlutris.gui.dialogsr   Zlutris.gui.widgets.commonr   r   ) r   r   <module>r      s        F * 63+{ 3+r   