From fecc1f6758251214b28963e3caa0a4d06ff0e352 Mon Sep 17 00:00:00 2001 From: Pedro Beirao Date: Sun, 16 Jun 2024 02:27:49 +0100 Subject: [PATCH] Show history skill detail only when showing level --- src/historylist.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/historylist.cpp b/src/historylist.cpp index d957075..7f9f883 100644 --- a/src/historylist.cpp +++ b/src/historylist.cpp @@ -480,6 +480,8 @@ void historyList::on_history_listWidget_currentRowChanged(int currentRow) } ui->level_label->setText(createLevelString(warp1, warp2)); + if (ui->level_label->text().isEmpty()) ui->difficulty_label->clear(); + if (!recordDemo_s.isEmpty()) ui->demo_label->setText(recordDemo_s); else if (!playbackDemo_s.isEmpty()) ui->demo_label->setText(playbackDemo_t + playbackDemo_s);