1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Option to clear the recent games list.

This commit is contained in:
Joe R 2024-01-15 22:17:09 -05:00
parent d3067f2397
commit 5c4304ba44
7 changed files with 73 additions and 5 deletions

View file

@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: PySol 0.0.1\n" "Project-Id-Version: PySol 0.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2023-12-30 09:38-0500\n" "PO-Revision-Date: 2024-01-15 22:12-0500\n"
"Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n" "Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n"
"Language-Team: German\n" "Language-Team: German\n"
"Language: de\n" "Language: de\n"
@ -4925,6 +4925,15 @@ msgstr "&Datei"
msgid "R&ecent games" msgid "R&ecent games"
msgstr "&Zuletzt gespielte" msgstr "&Zuletzt gespielte"
msgid "&Clear recent games"
msgstr ""
msgid "Clear recent games"
msgstr ""
msgid "Clear the recent games list?"
msgstr ""
#: pysollib/ui/tktile/menubar.py:304 #: pysollib/ui/tktile/menubar.py:304
msgid "Select &random game" msgid "Select &random game"
msgstr "Zu&fallsspiel auswählen" msgstr "Zu&fallsspiel auswählen"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: 1.02\n" "Project-Id-Version: 1.02\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2023-12-30 09:37-0500\n" "PO-Revision-Date: 2024-01-15 22:13-0500\n"
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n" "Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
"Language-Team: French\n" "Language-Team: French\n"
"Language: fr\n" "Language: fr\n"
@ -4975,6 +4975,15 @@ msgstr "Fichier"
msgid "R&ecent games" msgid "R&ecent games"
msgstr "Jeux r&écents" msgstr "Jeux r&écents"
msgid "&Clear recent games"
msgstr ""
msgid "Clear recent games"
msgstr ""
msgid "Clear the recent games list?"
msgstr ""
#: pysollib/ui/tktile/menubar.py:304 #: pysollib/ui/tktile/menubar.py:304
msgid "Select &random game" msgid "Select &random game"
msgstr "Jeu au hasa&rd" msgstr "Jeu au hasa&rd"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PySolFC\n" "Project-Id-Version: PySolFC\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2023-12-30 09:36-0500\n" "PO-Revision-Date: 2024-01-15 22:13-0500\n"
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n" "Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
"Language-Team: Polish <pl@li.org>\n" "Language-Team: Polish <pl@li.org>\n"
"Language: pl\n" "Language: pl\n"
@ -4995,6 +4995,15 @@ msgstr "Plik"
msgid "R&ecent games" msgid "R&ecent games"
msgstr "Ostatni&e gry" msgstr "Ostatni&e gry"
msgid "&Clear recent games"
msgstr ""
msgid "Clear recent games"
msgstr ""
msgid "Clear the recent games list?"
msgstr ""
#: pysollib/ui/tktile/menubar.py:304 #: pysollib/ui/tktile/menubar.py:304
msgid "Select &random game" msgid "Select &random game"
msgstr "Wybie&rz grę losowo" msgstr "Wybie&rz grę losowo"

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2023-12-30 09:35-0500\n" "PO-Revision-Date: 2024-01-15 22:14-0500\n"
"Last-Translator: Matheus Knack <mtknack555@gmail.com>\n" "Last-Translator: Matheus Knack <mtknack555@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: pt_BR\n" "Language: pt_BR\n"
@ -4997,6 +4997,15 @@ msgstr "&Arquivo"
msgid "R&ecent games" msgid "R&ecent games"
msgstr "Jogos de Recentes" msgstr "Jogos de Recentes"
msgid "&Clear recent games"
msgstr ""
msgid "Clear recent games"
msgstr ""
msgid "Clear the recent games list?"
msgstr ""
#: pysollib/ui/tktile/menubar.py:304 #: pysollib/ui/tktile/menubar.py:304
msgid "Select &random game" msgid "Select &random game"
msgstr "Selecionar o jogo aleatório" msgstr "Selecionar o jogo aleatório"

View file

@ -4728,6 +4728,15 @@ msgstr ""
msgid "R&ecent games" msgid "R&ecent games"
msgstr "" msgstr ""
msgid "&Clear recent games"
msgstr ""
msgid "Clear recent games"
msgstr ""
msgid "Clear the recent games list?"
msgstr ""
#: pysollib/ui/tktile/menubar.py:304 #: pysollib/ui/tktile/menubar.py:304
msgid "Select &random game" msgid "Select &random game"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-10 10:19-0500\n" "POT-Creation-Date: 2021-12-10 10:19-0500\n"
"PO-Revision-Date: 2023-12-30 09:34-0500\n" "PO-Revision-Date: 2024-01-15 22:14-0500\n"
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n" "Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
"Language-Team: Russian <ru@li.org>\n" "Language-Team: Russian <ru@li.org>\n"
"Language: ru\n" "Language: ru\n"
@ -5064,6 +5064,15 @@ msgstr "&Файл"
msgid "R&ecent games" msgid "R&ecent games"
msgstr "Выбрать н&едавнюю игру" msgstr "Выбрать н&едавнюю игру"
msgid "&Clear recent games"
msgstr ""
msgid "Clear recent games"
msgstr ""
msgid "Clear the recent games list?"
msgstr ""
#: pysollib/ui/tktile/menubar.py:304 #: pysollib/ui/tktile/menubar.py:304
msgid "Select &random game" msgid "Select &random game"
msgstr "С&лучайная игра" msgstr "С&лучайная игра"

View file

@ -1294,6 +1294,9 @@ class PysolMenubarTkCommon:
if gi: if gi:
games.append(gi) games.append(gi)
self.updateGamesMenu(submenu, games) self.updateGamesMenu(submenu, games)
submenu.add_separator()
submenu.add_command(label=n_("&Clear recent games"),
command=self.mClearRecent)
def updateCustomGamesMenu(self): def updateCustomGamesMenu(self):
menu = self.menupath[".menubar.select.customgames"][2] menu = self.menupath[".menubar.select.customgames"][2]
@ -1398,6 +1401,17 @@ class PysolMenubarTkCommon:
self.app.opt.favorite_gameid.remove(gameid) self.app.opt.favorite_gameid.remove(gameid)
self.updateFavoriteGamesMenu() self.updateFavoriteGamesMenu()
def mClearRecent(self, *event):
if self._cancelDrag(break_pause=False):
return
if not self.game.areYouSure(_("Clear recent games"),
_("Clear the recent games list?")):
return
gameid = self.app.game.id
self.app.opt.recent_gameid = []
self.app.opt.recent_gameid.append(gameid)
self.updateRecentGamesMenu(self.app.opt.recent_gameid)
def mOpen(self, *event): def mOpen(self, *event):
if self._cancelDrag(break_pause=False): if self._cancelDrag(break_pause=False):
return return