mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-16 08:44:15 +01:00
change downloadui to drawconditions
This commit is contained in:
parent
2a4465b3fe
commit
46c58c6cfd
1 changed files with 8 additions and 4 deletions
|
|
@ -68,10 +68,6 @@ public class DownloadUi : WindowMediatorSubscriberBase
|
||||||
|
|
||||||
public override void Draw()
|
public override void Draw()
|
||||||
{
|
{
|
||||||
if (!_configService.Current.ShowTransferWindow && !_configService.Current.ShowTransferBars) return;
|
|
||||||
if (!_currentDownloads.Any() && !_fileTransferManager.CurrentUploads.Any() && !_uploadingPlayers.Any()) return;
|
|
||||||
if (!IsOpen) return;
|
|
||||||
|
|
||||||
if (_configService.Current.ShowTransferWindow)
|
if (_configService.Current.ShowTransferWindow)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
@ -215,6 +211,14 @@ public class DownloadUi : WindowMediatorSubscriberBase
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool DrawConditions()
|
||||||
|
{
|
||||||
|
if (!_configService.Current.ShowTransferWindow && !_configService.Current.ShowTransferBars) return false;
|
||||||
|
if (!_currentDownloads.Any() && !_fileTransferManager.CurrentUploads.Any() && !_uploadingPlayers.Any()) return false;
|
||||||
|
if (!IsOpen) return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public override void PreDraw()
|
public override void PreDraw()
|
||||||
{
|
{
|
||||||
base.PreDraw();
|
base.PreDraw();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue