mirror of
https://github.com/c9moser/sgbackup.git
synced 2026-01-19 11:30:13 +00:00
2025.03.14 16:48:13 (desktop)
This commit is contained in:
parent
f62f0810f2
commit
c0b5dfa400
@ -48,7 +48,9 @@ from ._steam import (
|
||||
)
|
||||
from ..steam import Steam
|
||||
from ..epic import Epic
|
||||
from ._epic import EpicNewAppsDialog
|
||||
from ._epic import (
|
||||
EpicNewAppsDialog,
|
||||
)
|
||||
from ._backupdialog import BackupSingleDialog,BackupManyDialog
|
||||
from ..archiver import ArchiverManager
|
||||
from ._dialogs import (
|
||||
@ -1439,6 +1441,14 @@ class Application(Gtk.Application):
|
||||
action_steam_manage_ignore.connect('activate',self._on_action_steam_manage_ignore)
|
||||
self.add_action(action_steam_manage_ignore)
|
||||
|
||||
action_epic_new_apps = Gio.SimpleAction.new('epic-new-apps',None)
|
||||
action_epic_new_apps.connect('activate',self._on_action_epic_new_apps)
|
||||
self.add_action(action_epic_new_apps)
|
||||
|
||||
action_epic_manage_ignore = Gio.SimpleAction.new('epic-manage-ignore',None)
|
||||
action_epic_manage_ignore.connect('activate',self._on_action_epic_manage_ignore)
|
||||
self.add_action(action_epic_manage_ignore)
|
||||
|
||||
# add accels
|
||||
self.set_accels_for_action('app.quit',["<Primary>q"])
|
||||
self.set_accels_for_action('app.backup-all',["<Primary><Shift>s"])
|
||||
@ -1559,6 +1569,21 @@ class Application(Gtk.Application):
|
||||
|
||||
dialog.present()
|
||||
|
||||
def _on_action_epic_new_apps(self,action,param):
|
||||
epic = Epic()
|
||||
if not epic.find_new_apps():
|
||||
### TODO #####################################
|
||||
return
|
||||
else:
|
||||
dialog = EpicNewAppsDialog(self.appwindow)
|
||||
dialog.connect_after("response",lambda d,r: self.appwindow.refresh())
|
||||
|
||||
dialog.present()
|
||||
|
||||
def _on_action_epic_manage_ignore(self,action,param):
|
||||
### TODO ##########################################
|
||||
pass
|
||||
|
||||
def new_settings_dialog(self)->SettingsDialog:
|
||||
"""
|
||||
new_settings_dialog Create a new `SettingsDialog`.
|
||||
|
||||
@ -37,6 +37,16 @@
|
||||
</submenu>
|
||||
<submenu>
|
||||
<attribute name='label' translatable='true'>_Epic</attribute>
|
||||
<section>
|
||||
<item>
|
||||
<attribute name='label' translatable='true'>New Epic-Games Apps</attribute>
|
||||
<attribute name='action'>app.epic-new-apps</attribute>
|
||||
</item>
|
||||
<item>
|
||||
<attribute name='label' translatable='true'>Manage Ignored Apps</attribute>
|
||||
<attribute name='action'>app.epic-manage-ignore</attribute>
|
||||
</item>
|
||||
</section>
|
||||
</submenu>
|
||||
<submenu>
|
||||
<attribute name='label' translatable='true'>_GoG</attribute>
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M31.416 15.984c-0.348-16.391-22.145-22.505-30.541-7.14 0.376 0.276 0.88 0.635 1.256 0.896-0.62 1.296-1.057 2.676-1.303 4.093-0.161 0.912-0.244 1.833-0.244 2.76 0 8.5 6.911 15.407 15.421 15.407 8.516 0 15.411-6.896 15.411-15.407zM4.385 18.729c-0.203 1.667-0.073 2.183-0.073 2.385l-0.375 0.131c-0.14-0.272-0.489-1.24-0.651-2.543-0.407-4.957 2.979-9.421 8.14-10.265 4.724-0.692 9.251 2.245 10.303 6.349l-0.375 0.131c-0.115-0.115-0.303-0.448-1.027-1.172-5.708-5.709-14.672-3.095-15.943 4.989zM19.057 21.505c-0.787 1.135-2.079 1.812-3.453 1.807-2.328 0.005-4.213-1.88-4.208-4.208 0.005-2.197 1.708-4.025 3.901-4.187 1.359-0.057 2.629 0.676 3.224 1.864 0.651 1.301 0.411 2.88-0.604 3.927 0.389 0.276 0.765 0.537 1.14 0.797zM27.828 21.667c-2.224 5.041-6.807 7.688-11.692 7.615-9.381-0.464-12.109-11.287-5.839-15.188l0.276 0.271c-0.104 0.147-0.48 0.439-1.057 1.579-0.677 1.385-0.896 2.776-0.808 3.641 0.489 7.561 11.089 9.109 14.729 1.619 4.641-10.244-7.677-20.667-18.604-12.703l-0.245-0.245c2.876-4.509 8.5-6.52 13.86-5.176 8.197 2.067 12.604 10.609 9.38 18.588z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user