Skip to content

Commit 6955d94

Browse files
committed
Mark window spawn behaviour feature as beta.
Haven't had time to fully test it. Don't have time to fully develop it. Making release while I do have time so that I can get back to it.
1 parent 451854f commit 6955d94

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/gui/wx_app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import wx
44
import wx.adv
55

6-
from common import JSONFile
76
from gui.layout_manager import LayoutPage
87
from gui.on_spawn_manager import OnSpawnPage
98
from gui.settings import SettingsPanel
@@ -43,7 +42,7 @@ def schedule_exit(self):
4342

4443
def spawn_gui(
4544
snapshot: SnapshotFile,
46-
settings: JSONFile, start_page: Literal['rules', 'settings'] = 'rules'
45+
start_page: Literal['rules', 'settings'] = 'rules'
4746
):
4847
top = WxApp()._top_frame
4948

@@ -61,7 +60,7 @@ def spawn_gui(
6160
on_spawn_panel = OnSpawnPage(nb)
6261
settings_panel = SettingsPanel(nb)
6362
nb.AddPage(layout_panel, 'Layouts and Rules')
64-
nb.AddPage(on_spawn_panel, 'Window Spawn Behaviour')
63+
nb.AddPage(on_spawn_panel, 'Window Spawn Behaviour (Beta)')
6564
nb.AddPage(settings_panel, 'Settings')
6665
nb.SetPadding(wx.Size(5, 2))
6766

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ def on_window_spawn(windows: list[Window]):
153153
TaskbarIcon.SEPARATOR,
154154
['Apply all', lambda *_: restore_snapshot([], snap.get_rules(compatible_with=True))]
155155
]],
156-
['Configure rules', lambda *_: spawn_gui(snap, SETTINGS, 'rules')],
156+
['Configure rules', lambda *_: spawn_gui(snap, 'rules')],
157157
TaskbarIcon.SEPARATOR,
158-
['Settings', lambda *_: spawn_gui(snap, SETTINGS, 'settings')],
158+
['Settings', lambda *_: spawn_gui(snap, 'settings')],
159159
['About', lambda *_: about_dialog()]
160160
]
161161

0 commit comments

Comments
 (0)