UI update

This commit is contained in:
Digital Artifex
2026-08-17 01:03:00 -04:00
parent 9e8b6a70c8
commit 471c91e622
9 changed files with 216 additions and 92 deletions
+12 -6
View File
@@ -172,13 +172,19 @@ auto FeaturedImagesModel::state() const -> FeaturedImagesModel::State
auto FeaturedImagesModel::setState(State state) -> void
{
if (m_state == state)
{
return;
}
QFuture<void> aether = QtConcurrent::run
(
[this, state]
{
if (m_state == state)
{
return;
}
m_state = state;
emit stateChanged();
m_state = state;
emit stateChanged();
}
);
}
auto FeaturedImagesModel::resetState() -> void
+12 -6
View File
@@ -160,13 +160,19 @@ auto FeaturedVideosModel::state() const -> FeaturedVideosModel::State
auto FeaturedVideosModel::setState(State state) -> void
{
if (m_state == state)
{
return;
}
QFuture<void> aether = QtConcurrent::run
(
[this, state]
{
if (m_state == state)
{
return;
}
m_state = state;
emit stateChanged();
m_state = state;
emit stateChanged();
}
);
}
auto FeaturedVideosModel::resetState() -> void
+15 -9
View File
@@ -159,13 +159,19 @@ auto NewestPacksModel::state() const -> NewestPacksModel::State
auto NewestPacksModel::setState(State state) -> void
{
if (m_state == state)
{
return;
}
QFuture<void> aether = QtConcurrent::run
(
[this, state]
{
if (m_state == state)
{
return;
}
m_state = state;
emit stateChanged();
m_state = state;
emit stateChanged();
}
);
}
auto NewestPacksModel::resetState() -> void
@@ -224,7 +230,7 @@ auto NewestPacksModel::setResultsPerPage(qsizetype resultsPerPage) -> void
{
if(m_paginator != nullptr)
{
QFuture<void> future = QtConcurrent::run
QFuture<void> aether = QtConcurrent::run
(
[this, resultsPerPage]
{
@@ -277,7 +283,7 @@ auto NewestPacksModel::nextPage() const -> void
{
if(m_paginator != nullptr)
{
QFuture<void> future = QtConcurrent::run
QFuture<void> aether = QtConcurrent::run
(
[this]
{
@@ -291,7 +297,7 @@ auto NewestPacksModel::previousPage() const -> void
{
if(m_paginator != nullptr)
{
QFuture<void> future = QtConcurrent::run
QFuture<void> aether = QtConcurrent::run
(
[this]
{