mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 09:03:58 +00:00
Fix initial index in font family combo box
This commit is contained in:
@@ -33,12 +33,8 @@ TextConfig::TextConfig(QWidget *parent) : QWidget(parent) {
|
||||
this, &TextConfig::fontFamilyChanged);
|
||||
fontsCB->addItems(fontDB.families());
|
||||
// TODO save family in config
|
||||
int index = fontsCB->findData(QFont().family());
|
||||
if ( index != -1 ) {
|
||||
fontsCB->setCurrentIndex(index);
|
||||
} else {
|
||||
|
||||
}
|
||||
int index = fontsCB->findText(font().family());
|
||||
fontsCB->setCurrentIndex(index);
|
||||
|
||||
QColor bgColor(palette().background().color());
|
||||
QString iconPrefix = ColorUtils::colorIsDark(bgColor) ?
|
||||
|
||||
Reference in New Issue
Block a user