Skip to content

Commit

Permalink
Updated streamdeck-sdk version;
Browse files Browse the repository at this point in the history
  • Loading branch information
gri-gus committed Sep 22, 2024
1 parent b4cbb0e commit 2311f44
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions com.ggusev.proxymanager.sdPlugin/code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def on_key_down(self, obj: events_received_objs.KeyDown) -> None:
return
self.show_alert(context=obj.context)

@log_errors
def on_will_appear(self, obj: events_received_objs.WillAppear):
networkservice = obj.payload.settings["networkservice"]
proxy_types, proxy_type_selected = obj.payload.settings["proxy_type"]
Expand All @@ -109,7 +108,6 @@ def on_will_appear(self, obj: events_received_objs.WillAppear):
)
CONTEXT_TO_PROXY_SETTINGS[obj.context] = proxy_settings

@log_errors
def on_will_disappear(self, obj: events_received_objs.WillDisappear) -> None:
CONTEXT_TO_PROXY_SETTINGS.pop(obj.context, None)

Expand All @@ -133,10 +131,9 @@ def monitoring_iteration(self):
self.set_state(context=context, state=ConnectStates.DISABLED)


connect_disconnect_action = ConnectDisconnectAction()
connect_disconnect_action.run_monitoring()

if __name__ == '__main__':
connect_disconnect_action = ConnectDisconnectAction()
connect_disconnect_action.run_monitoring()
StreamDeck(
actions=[
connect_disconnect_action,
Expand Down
2 changes: 1 addition & 1 deletion com.ggusev.proxymanager.sdPlugin/code/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ annotated-types==0.7.0
decohints==1.0.9
pydantic==2.8.2
pydantic_core==2.20.1
streamdeck-sdk==1.1.0
streamdeck-sdk==1.2.0
typing_extensions==4.12.2
websockets==13.0.1
2 changes: 1 addition & 1 deletion com.ggusev.proxymanager.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"Description": "Control proxy on MacOS",
"Icon": "assets/plugin_icon",
"Name": "Proxy manager",
"Version": "1.0.2",
"Version": "1.0.3",
"SDKVersion": 2,
"OS": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

from streamdeck_sdk.property_inspector import *
from streamdeck_sdk_pi import *

OUTPUT_DIR = Path(__file__).parent
TEMPLATE = Path(__file__).parent / "pi_template.html"
Expand Down

0 comments on commit 2311f44

Please sign in to comment.