Skip to content

Commit 52af5fc

Browse files
committed
-LaunchManager: Fixed bug if only folder(s) of protocols are present in the protocol root folder
-LaunchManager: Fixed selection color on r2025a -PsychToolbox Video Plugins: Added error if PsychToolbox is not installed
1 parent b8ed1d8 commit 52af5fc

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Functions/Launch manager/LaunchManager.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
end
3232

3333
% Set colors if dark theme is active (r2025a or newer)
34-
listBGColor = [0.8 0.8 0.8];
34+
listBGColor = [0.9 0.9 0.9];
3535
if IsMATLAB_DarkMode
3636
listBGColor = [0.2 0.2 0.2];
3737
end
@@ -174,6 +174,7 @@
174174
% Reset to first item in list
175175
selectedProtocol = 1;
176176
set(BpodSystem.GUIHandles.ProtocolSelector, 'Value', selectedProtocol);
177+
BpodSystem.GUIData.ProtocolSelectorLastValue = 1;
177178
return;
178179
end
179180

@@ -198,6 +199,7 @@
198199
loadSettings(protocolName, BpodSystem.GUIData.DummySubjectString);
199200
update_datafile(protocolName, BpodSystem.GUIData.DummySubjectString);
200201
BpodSystem.GUIData.ProtocolSelectorLastValue = 1;
202+
uicontrol(BpodSystem.GUIHandles.ProtocolSelector);
201203
end
202204

203205
function ProtocolSelectorNavigate (a,b)

Functions/Plugins/PsychToolboxFrameServer.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444

4545
methods
4646
function obj = PsychToolboxFrameServer(varargin)
47+
try
48+
ptb_version = PsychtoolboxVersion;
49+
catch
50+
error('Psychtoolbox not found. Please ensure that Psychtoolbox is installed.')
51+
end
4752
Screen('Preference','SkipSyncTests', 1);
4853
[obj.WindowSize(1), obj.WindowSize(2)]=Screen('WindowSize', 2);
4954
obj.Window = Screen('OpenWindow',2);

Functions/Plugins/PsychToolboxVideoPlayer.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@
8787
warning('on');
8888
end
8989
end
90+
try
91+
ptb_version = PsychtoolboxVersion;
92+
catch
93+
error('Psychtoolbox not found. Please ensure that Psychtoolbox is installed.')
94+
end
9095
obj.AllFonts = listfonts;
9196
Screen('Preference','SkipSyncTests', 1);
9297
obj.Videos = cell(1,obj.MaxVideos);

0 commit comments

Comments
 (0)