mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Remove preprocessing / todo
This commit is contained in:
parent
72f67705ed
commit
bd00a3f97e
|
|
@ -83,12 +83,7 @@ bool MacroConditionWindow::Load(obs_data_t *obj)
|
|||
MacroCondition::Load(obj);
|
||||
_window = obs_data_get_string(obj, "window");
|
||||
_fullscreen = obs_data_get_bool(obj, "fullscreen");
|
||||
#if __APPLE__
|
||||
// TODO: Implement maximized check on MacOS
|
||||
_maximized = false;
|
||||
#else
|
||||
_maximized = obs_data_get_bool(obj, "maximized");
|
||||
#endif
|
||||
_focus = obs_data_get_bool(obj, "focus");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -390,13 +390,7 @@ void WindowSwitch::load(obs_data_t *obj)
|
|||
|
||||
window = obs_data_get_string(obj, "windowTitle");
|
||||
fullscreen = obs_data_get_bool(obj, "fullscreen");
|
||||
#if __APPLE__
|
||||
// TODO:
|
||||
// not implemented on MacOS as I cannot test it
|
||||
maximized = false;
|
||||
#else
|
||||
maximized = obs_data_get_bool(obj, "maximized");
|
||||
#endif
|
||||
focus = obs_data_get_bool(obj, "focus") ||
|
||||
!obs_data_has_user_value(obj, "focus");
|
||||
}
|
||||
|
|
@ -425,12 +419,6 @@ WindowSwitchWidget::WindowSwitchWidget(QWidget *parent, WindowSwitch *s)
|
|||
|
||||
windows->setEditable(true);
|
||||
windows->setMaxVisibleItems(20);
|
||||
#if __APPLE__
|
||||
// TODO:
|
||||
// not implemented on MacOS as I cannot test it
|
||||
maximized->setDisabled(true);
|
||||
maximized->setVisible(false);
|
||||
#endif
|
||||
|
||||
if (s) {
|
||||
windows->setCurrentText(s->window.c_str());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user