Skip to content

Commit

Permalink
Remove dialog dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed May 2, 2024
1 parent 723caab commit d2ead4c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 136 deletions.
1 change: 0 additions & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ subdir('icons')

blueprints = custom_target('blueprints',
input: files(
'ui/language_dialog.blp',
'ui/preferences_dialog.blp',
'ui/preferences_general.blp',
'ui/preferences_languages.blp',
Expand Down
45 changes: 0 additions & 45 deletions data/ui/language_dialog.blp

This file was deleted.

87 changes: 0 additions & 87 deletions frog/widgets/language_dialog.py

This file was deleted.

2 changes: 1 addition & 1 deletion frog/widgets/preferences_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PreferencesDialog(Adw.PreferencesDialog):
general_page: PreferencesGeneralPage = Gtk.Template.Child()
languages_page: PreferencesLanguagesPage = Gtk.Template.Child()

def __init__(self, settings: Settings, parent: Adw.Window = None):
def __init__(self):
super().__init__()

self.connect('show', lambda x: telemetry.capture_page_view('preferences'))
Expand Down
3 changes: 1 addition & 2 deletions frog/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ def on_copy_to_clipboard(self, sender) -> None:
self.show_toast(_("Text copied"))

def show_preferences(self):
# dialog = LanguagePacksDialog(self)
dialog = PreferencesDialog(settings=self.settings, parent=self)
dialog = PreferencesDialog()
dialog.present(self)

def show_welcome_page(self, *_):
Expand Down

0 comments on commit d2ead4c

Please sign in to comment.