Browse Source

Merge pull request #1 from onefifth/focus_on_break

Focus on break
pull/1/head
Zander Milroy 8 years ago committed by GitHub
parent
commit
ef5396b313
  1. 4
      server/wxLdb/ui/mainWindow.lua
  2. 1
      server/wxLdb/wxLdbController.lua

4
server/wxLdb/ui/mainWindow.lua

@ -341,6 +341,10 @@ function meta.__index:setActive()
self.active = true self.active = true
end end
function meta.__index:raise()
self.frame:Raise()
end
function meta.__index:onIdleUpdate_( event ) function meta.__index:onIdleUpdate_( event )
local currentPageIdx = self.sourceBook:GetSelection() local currentPageIdx = self.sourceBook:GetSelection()
for _, page in pairs( self.sourcePages ) do for _, page in pairs( self.sourcePages ) do

1
server/wxLdb/wxLdbController.lua

@ -224,6 +224,7 @@ function meta.__index:refreshSourcePageFocus_( remoteSource, line )
local clientData = assert( self.clients[clientId] ) local clientData = assert( self.clients[clientId] )
local sourceType = string.sub( remoteSource, 1, 1 ) local sourceType = string.sub( remoteSource, 1, 1 )
if sourceType == "@" then if sourceType == "@" then
self.window:raise()
print( "Setting focus to "..remoteSource.."("..line..")" ) print( "Setting focus to "..remoteSource.."("..line..")" )
remoteSource = grldc.utilities.normalizePath( string.sub( remoteSource, 2 ) ) remoteSource = grldc.utilities.normalizePath( string.sub( remoteSource, 2 ) )
local source, remotePath, remoteFile = self:getLocalSource_( clientId, remoteSource ) local source, remotePath, remoteFile = self:getLocalSource_( clientId, remoteSource )

Loading…
Cancel
Save