Skip to content

Commit

Permalink
Fixed crash, links in readme and name in metainfo
Browse files Browse the repository at this point in the history
  • Loading branch information
aleiepure committed Sep 21, 2023
1 parent a6bd28d commit 8052be4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<a href="https://github.com/aleiepure/ticketbooth/actions/workflows/build-x86.yaml" title="Build Flatpak status">
<img src="https://github.com/aleiepure/ticketbooth/actions/workflows/build-x86.yaml/badge.svg"/>
</a>
<a href="https://github.com/aleiepure/devtoolbox/blob/main/LICENSES/GPL-3.0-or-later.txt" title="GPL-3 License">
<a href="https://github.com/aleiepure/ticketbooth/blob/main/LICENSES/GPL-3.0-or-later.txt" title="GPL-3 License">
<img src="https://img.shields.io/badge/License-GPL--3.0-blue.svg">
</a>
<a href="https://api.reuse.software/info/github.com/aleiepure/ticketbooth" title="REUSE compliance">
Expand Down Expand Up @@ -42,7 +42,7 @@ This app uses the TMDB API but is not endorsed or certified by TMDB.
<img width='240' alt='Download on Flathub' src='https://dl.flathub.org/assets/badges/flathub-badge-en.png'/>
</a> <br>

Builds from the main branch are available as artifacts on the [Actions page](https://github.com/aleiepure/devtoolbox/actions).\
Builds from the main branch are available as artifacts on the [Actions page](https://github.com/aleiepure/ticketbooth/actions).\
To build from source see [Building](./CONTRIBUTING.md#building).

## Contribute
Expand Down
2 changes: 1 addition & 1 deletion data/me.iepure.Ticketbooth.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SPDX-License-Identifier: CC0-1.0
<id>@app_id@</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name translatable="no">Dev Toolbox</name>
<name translatable="no">Ticket Booth</name>
<launchable type="desktop-id">@app_id@.desktop</launchable>
<summary>Keep track of your favorite shows</summary>
<developer_name translatable="no">Alessandro Iepure</developer_name>
Expand Down
19 changes: 13 additions & 6 deletions src/views/main_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ def __init__(self):
'series'
)

shared.schema.bind('win-tab', self._tab_stack, 'visible-child-name', Gio.SettingsBindFlags.DEFAULT)
shared.schema.bind('offline-mode', self._banner, 'revealed', Gio.SettingsBindFlags.GET)
shared.schema.bind('win-tab', self._tab_stack,
'visible-child-name', Gio.SettingsBindFlags.DEFAULT)
shared.schema.bind('offline-mode', self._banner,
'revealed', Gio.SettingsBindFlags.GET)

# Theme switcher (Adapted from https://gitlab.gnome.org/tijder/blueprintgtk/)
self._menu_btn.get_popover().add_child(ThemeSwitcher(), 'themeswitcher')
Expand Down Expand Up @@ -88,7 +90,8 @@ def _check_update_content(self) -> None:
None
"""

last_check = datetime.fromisoformat(shared.schema.get_string('last-update'))
last_check = datetime.fromisoformat(
shared.schema.get_string('last-update'))

match shared.schema.get_string('update-freq'):
case 'day':
Expand All @@ -106,7 +109,8 @@ def _check_update_content(self) -> None:
case 'never':
return

shared.schema.set_string('last-update', datetime.now().strftime('%Y-%m-%d'))
shared.schema.set_string(
'last-update', datetime.now().strftime('%Y-%m-%d'))

def _update_content(self, activity: BackgroundActivity) -> None:
"""
Expand Down Expand Up @@ -149,5 +153,8 @@ def refresh(self) -> None:
Returns:
None
"""
self._tab_stack.get_child_by_name('movies').refresh_view()
self._tab_stack.get_child_by_name('series').refresh_view()

if self._tab_stack.get_visible_child_name() == 'movies':
self._tab_stack.get_child_by_name('movies').refresh_view()
else:
self._tab_stack.get_child_by_name('series').refresh_view()

0 comments on commit 8052be4

Please sign in to comment.