mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
⚡ interupt close now outputs if saved similiar to auto-save
This commit is contained in:
parent
4c3b521966
commit
94fce9cd1f
1 changed files with 9 additions and 1 deletions
8
main.cpp
8
main.cpp
|
|
@ -22,7 +22,15 @@ static Bank bank;
|
|||
void SaveSig(int s)
|
||||
{
|
||||
std::cout << "\nSaving on close...\n";
|
||||
if (bank.GetChangeState())
|
||||
{
|
||||
std::cout << " to disk...\n";
|
||||
bank.Save();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << " no changes...\n";
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue