Skip to content

Commit

Permalink
Fix about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed Sep 27, 2024
1 parent be196b5 commit 755d2f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/solaar/ui/about/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from solaar.ui.about.view import AboutView


def show(model=None, view=None):
def show(_=None, model=None, view=None):
"""Opens the About dialog."""
if model is None:
model = AboutModel()
Expand All @@ -32,5 +32,5 @@ def show(model=None, view=None):
if __name__ == "__main__":
from gi.repository import Gtk

show()
show(None)
Gtk.main()
2 changes: 1 addition & 1 deletion lib/solaar/ui/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
from solaar import NAME
from solaar.i18n import _

from . import about
from . import action
from . import icons
from . import window
from .about import about

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion lib/solaar/ui/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
from solaar.i18n import _
from solaar.i18n import ngettext

from . import about
from . import action
from . import config_panel
from . import diversion_rules
from . import icons
from .about import about
from .common import ui_async

gi.require_version("Gdk", "3.0")
Expand Down

0 comments on commit 755d2f0

Please sign in to comment.