Skip to content

Commit

Permalink
Don't scroll to selected column after sorting the torrents table (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
lighterowl authored May 21, 2023
1 parent b8b23a7 commit 4763b06
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ fpc_lazarus_build_install() {
make_fpc_cfg

cd "$sdk_dir"
curl -L -o lazarus-src.tar.gz 'https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%202.2.6/lazarus-2.2.6-0.tar.gz/download'
curl -L -o lazarus-src.tar.gz 'https://gitlab.com/dkk089/lazarus/-/archive/transgui/lazarus-transgui.tar.gz'
tar xf lazarus-src.tar.gz
mv lazarus-transgui lazarus
cd lazarus
make bigide
export PATH=$PWD:$PATH
Expand Down
3 changes: 2 additions & 1 deletion .github/build_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ fpc_lazarus_build_install() {
fpcmkcfg -d basepath=${fpc_basepath} -o ~/.fpc.cfg

cd "$sdk_dir"
curl -L -o lazarus-src.tar.gz 'https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%202.2.6/lazarus-2.2.6-0.tar.gz/download'
curl -L -o lazarus-src.tar.gz 'https://gitlab.com/dkk089/lazarus/-/archive/transgui/lazarus-transgui.tar.gz'
tar xf lazarus-src.tar.gz
mv lazarus-transgui lazarus
cd lazarus
make bigide LCL_PLATFORM=qt5
export PATH=$PWD:$PATH
Expand Down
3 changes: 2 additions & 1 deletion .github/build_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ function FPC-Lazarus-Build-Install {
fpcmkcfg -d basepath=${fpc323} -o "${fpc323}\bin\i386-win32\fpc.cfg"

cd "$sdk_dir"
My-Download -Uri "https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%202.2.6/lazarus-2.2.6-0.zip/download" -OutFile lazarus-src.zip
My-Download -Uri "https://gitlab.com/dkk089/lazarus/-/archive/transgui/lazarus-transgui.zip" -OutFile lazarus-src.zip
7z x lazarus-src.zip

mv lazarus-transgui lazarus
cd lazarus
make bigide
$env:Path = "${lazarus};" + $env:Path
Expand Down
1 change: 1 addition & 0 deletions main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,7 @@ procedure TMainForm.FormCreate(Sender: TObject);
FTorrents:=TVarList.Create(gTorrents.Columns.Count, 0);
FTorrents.ExtraColumns:=TorrentsExtraColumns;
gTorrents.Items.ExtraColumns:=TorrentsExtraColumns;
gTorrents.Options2:=[goNoScrollAfterSetRow];
lvFiles.Items.ExtraColumns:=FilesExtraColumns;
FFiles:=lvFiles.Items;
FFilesTree:=TFilesTree.Create(lvFiles);
Expand Down

0 comments on commit 4763b06

Please sign in to comment.