mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Small UX fixes
This commit is contained in:
parent
53c653a228
commit
1127aa7c91
2 changed files with 5 additions and 3 deletions
|
@ -18,10 +18,12 @@ Item {
|
||||||
screenSaverTimer.stop();
|
screenSaverTimer.stop();
|
||||||
screenSaver.state = "Invisible";
|
screenSaver.state = "Invisible";
|
||||||
} else {
|
} else {
|
||||||
|
if (timelineRoot.visible) {
|
||||||
screenSaverTimer.start();
|
screenSaverTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: screenSaverTimer
|
id: screenSaverTimer
|
||||||
|
|
|
@ -59,6 +59,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||||
: QMainWindow(parent)
|
: QMainWindow(parent)
|
||||||
, userSettings_{UserSettings::instance()}
|
, userSettings_{UserSettings::instance()}
|
||||||
{
|
{
|
||||||
|
instance_ = this;
|
||||||
|
|
||||||
setWindowTitle(0);
|
setWindowTitle(0);
|
||||||
setObjectName("MainWindow");
|
setObjectName("MainWindow");
|
||||||
|
|
||||||
|
@ -312,8 +314,6 @@ MainWindow::showChatPage()
|
||||||
&Cache::secretChanged,
|
&Cache::secretChanged,
|
||||||
userSettingsPage_,
|
userSettingsPage_,
|
||||||
&UserSettingsPage::updateSecretStatus);
|
&UserSettingsPage::updateSecretStatus);
|
||||||
|
|
||||||
instance_ = this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue