Skip to content

Commit

Permalink
rename MenuRequiredMixin to MenuMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Mar 3, 2024
1 parent ccd7d85 commit 7f0bf84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyprland/adapters/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from ..common import PyprError, get_logger, apply_variables


__all__ = ["MenuRequiredMixin", "MenuEngine"]
__all__ = ["MenuMixin", "MenuEngine"]

menu_logger = get_logger("menus adapter")

Expand Down Expand Up @@ -130,7 +130,7 @@ async def init(force_engine=False, extra_parameters="") -> MenuEngine:
raise PyprError("No engine found")


class MenuRequiredMixin:
class MenuMixin:
"""An extension mixin supporting 'engine' and 'parameters' config options to show a menu"""

_menu_configured = False
Expand Down
4 changes: 2 additions & 2 deletions pyprland/plugins/fetch_client_menu.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
" Select a client window and move it to the active workspace"

from .interface import Plugin
from ..adapters.menus import MenuRequiredMixin
from ..adapters.menus import MenuMixin
from ..common import state


class Extension(MenuRequiredMixin, Plugin):
class Extension(MenuMixin, Plugin):
"Shows a menu with shortcuts"

# Commands
Expand Down
4 changes: 2 additions & 2 deletions pyprland/plugins/shortcuts_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import asyncio

from .interface import Plugin
from ..adapters.menus import MenuRequiredMixin
from ..adapters.menus import MenuMixin
from ..common import apply_variables, apply_filter, CastBoolMixin


class Extension(CastBoolMixin, MenuRequiredMixin, Plugin):
class Extension(CastBoolMixin, MenuMixin, Plugin):
"Shows a menu with shortcuts"

# Commands
Expand Down

0 comments on commit 7f0bf84

Please sign in to comment.