mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
misc: fix warning about iso strings
This commit is contained in:
parent
f0bcadc6ad
commit
7d5cb1dbb3
1 changed files with 2 additions and 2 deletions
|
@ -887,9 +887,9 @@ zwlr_screencopy_manager_v1* CHyprlock::getScreencopy() {
|
||||||
|
|
||||||
void CHyprlock::attemptRestoreOnDeath() {
|
void CHyprlock::attemptRestoreOnDeath() {
|
||||||
// dirty hack
|
// dirty hack
|
||||||
uint64_t timeNowMs = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t({0})).count();
|
uint64_t timeNowMs = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t({0})).count();
|
||||||
|
|
||||||
constexpr char* LASTRESTARTPATH = "/tmp/hypr/.hyprlockrestart";
|
constexpr const char* LASTRESTARTPATH = "/tmp/hypr/.hyprlockrestart";
|
||||||
|
|
||||||
if (std::filesystem::exists(LASTRESTARTPATH)) {
|
if (std::filesystem::exists(LASTRESTARTPATH)) {
|
||||||
std::ifstream ifs(LASTRESTARTPATH);
|
std::ifstream ifs(LASTRESTARTPATH);
|
||||||
|
|
Loading…
Reference in a new issue