()
| 2774 | def change_menu_style(): |
| 2775 | style = choose_menu_style_mobile() |
| 2776 | if style is None: |
| 2777 | print(_("No menu style selected. Returning to settings menu...")) |
| 2778 | return |
| 2779 | |
| 2780 | current_path = get_current_language_path() |
| 2781 | if style in {'pipboy', 'dedsec_os'}: |
| 2782 | save_menu_autostart_preference(True) |
| 2783 | |
| 2784 | update_bashrc(current_path, style) |
| 2785 | save_menu_style_preference(style) |
| 2786 | |
| 2787 | style_label = { |
| 2788 | 'list': _('List Style'), |
| 2789 | 'grid': _('Grid Style'), |
| 2790 | 'number': _('Choose By Number'), |
| 2791 | 'pipboy': _('Ded-Guy Style'), |
| 2792 | 'dedsec_os': _('DedSec OS'), |
| 2793 | }.get(style, style) |
| 2794 | |
| 2795 | print(f"\n[+] {_('Menu style changed to')} {style_label}. {_('Bash configuration updated.')}" ) |
| 2796 | if style == 'pipboy': |
| 2797 | print('[+] ' + pipboy_text('Ded-Guy is now the saved main DedSec menu style.', 'Το Ded-Guy είναι πλέον το αποθηκευμένο κύριο στυλ μενού του DedSec.')) |
| 2798 | print('[+] ' + pipboy_text('Menu auto-start was enabled, so Ded-Guy will launch whenever Termux starts.', 'Η αυτόματη εκκίνηση μενού ενεργοποιήθηκε, ώστε το Ded-Guy να ανοίγει κάθε φορά που ξεκινά το Termux.')) |
| 2799 | print('[+] ' + pipboy_text('Start it now with: python3 ~/DedSec/Scripts/Settings.py --menu ded-guy', 'Εκκινήστε το τώρα με: python3 ~/DedSec/Scripts/Settings.py --menu ded-guy')) |
| 2800 | elif style == 'dedsec_os': |
| 2801 | print('[+] ' + pipboy_text('DedSec OS will auto-start when Termux opens.', 'Το DedSec OS θα ξεκινά αυτόματα όταν ανοίγει το Termux.')) |
| 2802 | print(f"[{_('Please restart Termux for changes to take full effect')}]") |
| 2803 | # ------------------------------ |
| 2804 | # Toggle Menu Auto-Start |
| 2805 | # ------------------------------ |
| 2806 |
no test coverage detected